On Fri, 10 Apr 2020 19:02:14 +0200 Holger Wansing <hwans...@mailbox.org> wrote:
> Hi, > > Holger Wansing <hwans...@mailbox.org> wrote: > > I found the problem in > > https://salsa.debian.org/webmaster-team/cron/-/blob/master/parts/7doc line > > 206: > > > > The if clause > > > > if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then > > pagecopy2 $lang "$pagefile" "$destdir/$(basename $page > > .html).$lang.html" ... > > > > checks if the files to be processed are html files with language extensions, > > otherwise it skips the file in question. > > In case of the file "sect.dist-upgrade.html" the 'if' does not give an > > EQUAL, because the "de.html" at the end is truncated ("de" is seen as > > language extension, not as part of the base-filename). That's why that file > > is not copied and is therefore missing on the webpage. > > > > So adding a dot like > > - if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then > > + if [ "$(basename $page .$lang.html)" = "$(basename $page)" ]; then > > ensures, that only language extensions are truncated, and everything works > > as expected. > Thanks for your contribution, Holger! -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/humour/ways_to_do_it.html Chuck Norris does not keep any numbers on his mobile phone’s address book. Instead, he memorised the entire phone directory. — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - https://shlom.in/reply .