wok-6.x diff tramys-server/stuff/tramys2.cgi @ rev 20897

updated exif (0.6.20 -> 0.6.21)
author Hans-G?nter Theisgen
date Tue Feb 26 15:35:48 2019 +0100 (2019-02-26)
parents bf52d3ac4b95
children b77dd7187137
line diff
     1.1 --- a/tramys-server/stuff/tramys2.cgi	Thu Aug 28 04:01:02 2014 +0300
     1.2 +++ b/tramys-server/stuff/tramys2.cgi	Tue Feb 26 15:35:48 2019 +0100
     1.3 @@ -39,7 +39,7 @@
     1.4  	EE=$(echo $1 | sed -n '/./s|^[^\.]*\(\.[^@]*\).*$|\1|p')
     1.5  	VV=$(echo $1 | sed -n '/@/s|^[^@]*\(@.*\)$|\1|p')
     1.6  	ee=$(echo $EE | tr A-Z a-z | tr -cd a-z0-9); [ "$ee" ] && ee=.$ee
     1.7 -	[ "x$EE" == "x$ee" ] && ee=''
     1.8 +	[ "x$EE" = "x$ee" ] && ee=''
     1.9  
    1.10  	[ "$CC" -a "$EE" -a "$VV" ]	&& echo -n "$LL$CC$EE$VV "
    1.11  	[ "$CC" -a "$ee" -a "$VV" ]	&& echo -n "$LL$CC$ee$VV "
    1.12 @@ -70,9 +70,9 @@
    1.13  			for line in $(grep -e "^$P	" $DATADIR/$PREFIX$list_type.list); do
    1.14  				locales=$(echo $line | cut -d'	' -f2)
    1.15  				names=$(echo $line | cut -d'	' -f3)
    1.16 -					[ "x$names" == "x" ] && names=$P
    1.17 +					[ "x$names" = "x" ] && names=$P
    1.18  				paths=$(echo $line | cut -d'	' -f4)
    1.19 -					[ "x$paths" == "x" ] && paths="$US/locale/%/$LC"
    1.20 +					[ "x$paths" = "x" ] && paths="$US/locale/%/$LC"
    1.21  
    1.22  				IFS=' '
    1.23  				# for all valid locale variants