slitaz-forge diff pkgs/search.sh @ rev 711
Update pangolin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 01 18:26:56 2020 +0100 (2020-01-01) |
parents | 14bba9bfd7e5 |
children |
line diff
1.1 --- a/pkgs/search.sh Sun Feb 12 12:38:04 2017 +0100 1.2 +++ b/pkgs/search.sh Wed Jan 01 18:26:56 2020 +0100 1.3 @@ -76,7 +76,7 @@ 1.4 1.5 nice_url() { 1.6 # if user submitted a form 1.7 - if [ "$REQUEST_METHOD" == 'POST' -o -n "$(GET submit)" ]; then 1.8 + if [ "$REQUEST_METHOD" = 'POST' -o -n "$(GET submit)" ]; then 1.9 OBJECT="$(GETPOST object)" 1.10 SEARCH="$(GETPOST query)" 1.11 case $OBJECT in 1.12 @@ -120,7 +120,7 @@ 1.13 1.14 # debug, if needed 1.15 debugq="$(GET debug)" 1.16 - if [ -n "$debugq" -a "$debugq" == 'debug' ]; then 1.17 + if [ -n "$debugq" -a "$debugq" = 'debug' ]; then 1.18 NICE="$NICE&debug" 1.19 fi 1.20 1.21 @@ -181,7 +181,7 @@ 1.22 s='selected' 1.23 for i in $(echo $QUERY_STRING | sed 's/[?&]/ /g'); do 1.24 case "$(echo $i | tr [A-Z] [a-z])" in 1.25 - query=*|search=*) [ ${i#*=} == Search ] || SEARCH=${i#*=};; 1.26 + query=*|search=*) [ ${i#*=} = Search ] || SEARCH=${i#*=};; 1.27 object=*) OBJECT=${i#*=};; 1.28 verbose=*) VERBOSE=${i#*=};; 1.29 lang=*) LANG=${i#*=};; 1.30 @@ -228,7 +228,7 @@ 1.31 SEARCH="$(echo $SEARCH | sed 's|%2B|+|g; s|%3A|:|g; s|%2F|/|g')" 1.32 1.33 SLITAZ_HOME="/home/slitaz" 1.34 -if [ "$SLITAZ_VERSION" == 'cooking' ]; then 1.35 +if [ "$SLITAZ_VERSION" = 'cooking' ]; then 1.36 WOK="$SLITAZ_HOME/wok" 1.37 else 1.38 WOK="$SLITAZ_HOME/wok-$SLITAZ_VERSION" 1.39 @@ -942,7 +942,7 @@ 1.40 # page begins 1.41 # 1.42 1.43 -if [ -n "$HTTP_IF_MODIFIED_SINCE" -a "$HTTP_IF_MODIFIED_SINCE" == "$lastmod" ]; then 1.44 +if [ -n "$HTTP_IF_MODIFIED_SINCE" -a "$HTTP_IF_MODIFIED_SINCE" = "$lastmod" ]; then 1.45 # When user agent asks if content modified since last seen and it is not modified 1.46 header "HTTP/1.1 304 Not Modified" 1.47 exit 0 1.48 @@ -984,7 +984,7 @@ 1.49 esac 1.50 1.51 echo -n "<option class=\"$c\" value=\"$i\"" 1.52 - [ "$i" == "${LANG%_*}" ] && echo -n " selected" 1.53 + [ "$i" = "${LANG%_*}" ] && echo -n " selected" 1.54 echo ">$l</option>" 1.55 done 1.56 echo '</select></div>'