Re: side not found

Shlomi Fish <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <[email protected]>
On Fri, 10 Apr 2020 19:02:14 +0200
Holger Wansing <[email protected]> wrote:

> Hi,
> 
> Holger Wansing <[email protected]> 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 .
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.