wok-tiny rev 142 tip

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (3 months ago)
parents d22f6fcf51da
children
files base-tiny/receipt bootloader/stuff/usr/bin/bootloader busybox/stuff/httpd_helper.sh busybox/stuff/udhcp.script custom-console/receipt fbvnc-config/receipt fbvnc-ssh/receipt hardware-ibm-6272/receipt keyboard/receipt lan-config/receipt linux/stuff/pack lpd-spooling-config/stuff/lpd-helper module-3c509/receipt module-cs89x0/receipt module-ne/receipt module-tlan/receipt module-via-rhine/receipt ppp/receipt wiki/stuff/var/www/wiki/index.sh wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh wiki/stuff/var/www/wiki/plugins/wkp_Password.sh wiki/stuff/var/www/wiki/plugins/wkp_Upload.sh
line diff
     1.1 --- a/base-tiny/receipt	Sat Jul 07 11:56:18 2018 +0200
     1.2 +++ b/base-tiny/receipt	Wed Feb 27 17:43:23 2019 +0100
     1.3 @@ -50,8 +50,8 @@
     1.4  <td>Network configuration</td>
     1.5  <td><select name="MODE">
     1.6  	<option value="STATIC">STATIC</option>
     1.7 -	<option value="DHCP"$([ "$MODE" == "DHCP" ] && echo ' selected="selected"')>DHCP</option>
     1.8 -	<option value="DISABLE"$([ "$MODE" == "DISABLE" ] && echo ' selected="selected"')>DISABLE</option>
     1.9 +	<option value="DHCP"$([ "$MODE" = "DHCP" ] && echo ' selected="selected"')>DHCP</option>
    1.10 +	<option value="DISABLE"$([ "$MODE" = "DISABLE" ] && echo ' selected="selected"')>DISABLE</option>
    1.11  </select></td>
    1.12  </tr>
    1.13  <tr>
     2.1 --- a/bootloader/stuff/usr/bin/bootloader	Sat Jul 07 11:56:18 2018 +0200
     2.2 +++ b/bootloader/stuff/usr/bin/bootloader	Wed Feb 27 17:43:23 2019 +0100
     2.3 @@ -205,7 +205,7 @@
     2.4  	rm -f $bs
     2.5  }
     2.6  
     2.7 -if [ "$FORMAT" == "0" ]; then # unsplitted
     2.8 +if [ "$FORMAT" = "0" ]; then # unsplitted
     2.9  	floppyset > $PREFIX
    2.10  	exit
    2.11  fi
     3.1 --- a/busybox/stuff/httpd_helper.sh	Sat Jul 07 11:56:18 2018 +0200
     3.2 +++ b/busybox/stuff/httpd_helper.sh	Wed Feb 27 17:43:23 2019 +0100
     3.3 @@ -111,7 +111,7 @@
     3.4  dd bs=1 count=$(($count - ($tmp * $page) ))
     3.5  }
     3.6  
     3.7 -if [ "$REQUEST_METHOD$POST__NAMES" == "POST" ]; then
     3.8 +if [ "$REQUEST_METHOD$POST__NAMES" = "POST" ]; then
     3.9  	prefix=/tmp/httpd_post
    3.10  	mkdir $prefix$$
    3.11  	now=$(stat -c %Y $prefix$$)
     4.1 --- a/busybox/stuff/udhcp.script	Sat Jul 07 11:56:18 2018 +0200
     4.2 +++ b/busybox/stuff/udhcp.script	Wed Feb 27 17:43:23 2019 +0100
     4.3 @@ -2,7 +2,7 @@
     4.4  
     4.5  [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
     4.6  
     4.7 -[ "$subnet" == "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness
     4.8 +[ "$subnet" = "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness
     4.9  RESOLV_CONF="/etc/resolv.conf"
    4.10  [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
    4.11  [ -n "$subnet" ] && NETMASK="netmask $subnet"
    4.12 @@ -33,7 +33,7 @@
    4.13  		for i in $dns ; do
    4.14  			echo nameserver $i
    4.15  		done >> $RESOLV_CONF
    4.16 -		[ "$1" == "bound" ] && for i in /etc/ipup.d/*; do
    4.17 +		[ "$1" = "bound" ] && for i in /etc/ipup.d/*; do
    4.18  			[ -x $i ] && $i $interface $ip $dns
    4.19  		done ;;
    4.20  esac
     5.1 --- a/custom-console/receipt	Sat Jul 07 11:56:18 2018 +0200
     5.2 +++ b/custom-console/receipt	Wed Feb 27 17:43:23 2019 +0100
     5.3 @@ -21,7 +21,7 @@
     5.4  {
     5.5  	respawn=respawn
     5.6  	[ "$ASKFIRST" ] && respawn=askfirst
     5.7 -	[ "$KERNEL_TTY" == "none" ] ||
     5.8 +	[ "$KERNEL_TTY" = "none" ] ||
     5.9  	echo -n " console=tty0 console=$KERNEL_TTY,${SPEED_KERNEL_TTY}n8" \
    5.10  		>> $1/boot/cmdline
    5.11  	TTY_LIST=""
    5.12 @@ -131,7 +131,7 @@
    5.13  EOT
    5.14  	for i in $(seq 0 3); do
    5.15  		echo -n "<option"
    5.16 -		[ "$KERNEL_TTY" == "ttyS$i" ] && echo -n ' selected="selected"'
    5.17 +		[ "$KERNEL_TTY" = "ttyS$i" ] && echo -n ' selected="selected"'
    5.18  		echo ">ttyS$i</option>"
    5.19  	done
    5.20  	cat <<EOT
    5.21 @@ -140,7 +140,7 @@
    5.22  EOT
    5.23  	for i in 115200 57600 38400 19200 9600 4800 2400 1200 600 300; do
    5.24  		echo -n "<option"
    5.25 -		[ "$SPEED_KERNEL_TTY" == "$i" ] && echo -n ' selected="selected"'
    5.26 +		[ "$SPEED_KERNEL_TTY" = "$i" ] && echo -n ' selected="selected"'
    5.27  		echo ">$i</option>"
    5.28  	done
    5.29  	echo -e "</select>\n</p>"
     6.1 --- a/fbvnc-config/receipt	Sat Jul 07 11:56:18 2018 +0200
     6.2 +++ b/fbvnc-config/receipt	Wed Feb 27 17:43:23 2019 +0100
     6.3 @@ -33,18 +33,18 @@
     6.4  <tr>
     6.5  <td>Autostart</td>
     6.6  <td>
     6.7 -<input type="radio" name="START" $([ "$START" == "no" ] && echo "checked=checked ")value="no"> never
     6.8 -<input type="radio" name="START" $([ "$START" == "yes" ] && echo "checked=checked ")value="yes"> always
     6.9 -<input type="radio" name="START" $([ "$START" == "ask" ] && echo "checked=checked ")value="ask"> ask during boot
    6.10 -<input type="radio" name="START" $([ "$START" == "cmdline" ] && echo "checked=checked ")value="cmdline"> with kernel argument 'fbvnc=<i>server</i>:<i>port</i>'
    6.11 +<input type="radio" name="START" $([ "$START" = "no" ] && echo "checked=checked ")value="no"> never
    6.12 +<input type="radio" name="START" $([ "$START" = "yes" ] && echo "checked=checked ")value="yes"> always
    6.13 +<input type="radio" name="START" $([ "$START" = "ask" ] && echo "checked=checked ")value="ask"> ask during boot
    6.14 +<input type="radio" name="START" $([ "$START" = "cmdline" ] && echo "checked=checked ")value="cmdline"> with kernel argument 'fbvnc=<i>server</i>:<i>port</i>'
    6.15  </td>
    6.16  </tr>
    6.17  <tr>
    6.18  <td>Bits per pixel</td>
    6.19  <td>
    6.20 -<input type="radio" name="BPP" $([ "$BPP" == "8" ] && echo "checked=checked ")value="8"> 8
    6.21 -<input type="radio" name="BPP" $([ "$BPP" == "16" ] && echo "checked=checked ")value="16"> 16
    6.22 -<input type="radio" name="BPP" $([ "$BPP" == "32" ] && echo "checked=checked ")value="32"> 32
    6.23 +<input type="radio" name="BPP" $([ "$BPP" = "8" ] && echo "checked=checked ")value="8"> 8
    6.24 +<input type="radio" name="BPP" $([ "$BPP" = "16" ] && echo "checked=checked ")value="16"> 16
    6.25 +<input type="radio" name="BPP" $([ "$BPP" = "32" ] && echo "checked=checked ")value="32"> 32
    6.26  </td>
    6.27  </tr>
    6.28  <tr>
     7.1 --- a/fbvnc-ssh/receipt	Sat Jul 07 11:56:18 2018 +0200
     7.2 +++ b/fbvnc-ssh/receipt	Wed Feb 27 17:43:23 2019 +0100
     7.3 @@ -27,7 +27,7 @@
     7.4  <tr>
     7.5  <td>Remove virtual consoles ?</td>
     7.6  <td>
     7.7 -<input type="radio" name="VNCONLY" $([ "$VNCONLY" == "no" ] && echo "checked=checked ")value="no"> keep virtual consoles 3 to 6
     7.8 +<input type="radio" name="VNCONLY" $([ "$VNCONLY" = "no" ] && echo "checked=checked ")value="no"> keep virtual consoles 3 to 6
     7.9  <input type="radio" name="VNCONLY" $([ "$VNCONLY" != "no" ] && echo "checked=checked ")value="yes"> keep VNC console only
    7.10  </td>
    7.11  </tr>
    7.12 @@ -61,7 +61,7 @@
    7.13  
    7.14  # From fbvnc-ssh
    7.15  EOT
    7.16 -	[ "$VNCONLY" == "yes" ] &&  cat >> $1/etc/init.d/local.sh <<EOT
    7.17 +	[ "$VNCONLY" = "yes" ] &&  cat >> $1/etc/init.d/local.sh <<EOT
    7.18  sed -i '/^tty[2-9]:.*/d' /etc/inittab
    7.19  EOT
    7.20  	cat >> $1/etc/init.d/local.sh <<EOT
     8.1 --- a/hardware-ibm-6272/receipt	Sat Jul 07 11:56:18 2018 +0200
     8.2 +++ b/hardware-ibm-6272/receipt	Wed Feb 27 17:43:23 2019 +0100
     8.3 @@ -56,7 +56,7 @@
     8.4  	sed -i "s/ IRQ_CS89X0_LIST/${list:- 15 12 11 10}/" $1/etc/init.d/pnp.sh
     8.5  	sed -i 's/cs89x0[^ "]* //' $1/etc/rcS.conf
     8.6  	sed -i '/rm -f .sbin.*pnp/d' $1/etc/init.d/pnp.sh
     8.7 -	[ "$CS89X0_WIPEPNP" == "on" ] &&
     8.8 +	[ "$CS89X0_WIPEPNP" = "on" ] &&
     8.9  	echo 'rm -f /sbin/pnpdump /sbin/isapnp /etc/isapnp.conf' >> $1/etc/init.d/pnp.sh
    8.10  }
    8.11  
     9.1 --- a/keyboard/receipt	Sat Jul 07 11:56:18 2018 +0200
     9.2 +++ b/keyboard/receipt	Wed Feb 27 17:43:23 2019 +0100
     9.3 @@ -142,7 +142,7 @@
     9.4  
     9.5  post_install()
     9.6  {
     9.7 -	if [ "$USECMDLINE" == "yes" ]; then
     9.8 +	if [ "$USECMDLINE" = "yes" ]; then
     9.9  		mkdir $1/bin
    9.10  		cat > $1/bin/loadkmap <<EOT
    9.11  #!/bin/sh
    9.12 @@ -170,18 +170,18 @@
    9.13  		rm -f $1/usr/share/data.cpio.gz
    9.14  	fi
    9.15  	for i in $1/usr/share/i18n/locales/* ; do
    9.16 -		[ $i == $1/usr/share/i18n/locales/$LOCALE ] || rm $i
    9.17 +		[ $i = $1/usr/share/i18n/locales/$LOCALE ] || rm $i
    9.18  	done
    9.19  	[ -n "$LOCALE" ] && cat > $1/etc/locale.conf <<EOT
    9.20  LANG=$LOCALE
    9.21  LC_ALL=$LOCALE
    9.22  EOT
    9.23  	find $1/usr/share/zoneinfo -type f | while read i; do
    9.24 -		[ $i == $1/usr/share/zoneinfo/$TIMEZONE ] || rm $i
    9.25 +		[ $i = $1/usr/share/zoneinfo/$TIMEZONE ] || rm $i
    9.26  	done
    9.27  	rmdir $1/usr/share/zoneinfo/* 2> /dev/null
    9.28  	[ -n "$TIMEZONE" ] && echo "$TIMEZONE" > $1/etc/TZ
    9.29  	for i in $1/usr/share/kmap/*.kmap ; do
    9.30 -		[ $i == $1/usr/share/kmap/$KEYBOARD.kmap ] || rm $i
    9.31 +		[ $i = $1/usr/share/kmap/$KEYBOARD.kmap ] || rm $i
    9.32  	done
    9.33  }
    10.1 --- a/lan-config/receipt	Sat Jul 07 11:56:18 2018 +0200
    10.2 +++ b/lan-config/receipt	Wed Feb 27 17:43:23 2019 +0100
    10.3 @@ -68,7 +68,7 @@
    10.4  <td>LAN Network configuration</td>
    10.5  <td><select name="MODE">
    10.6  	<option value="STATIC">STATIC</option>
    10.7 -	<option value="DHCP"$([ "$MODE" == "DHCP" ] && echo ' selected="selected"')>DHCP</option>
    10.8 +	<option value="DHCP"$([ "$MODE" = "DHCP" ] && echo ' selected="selected"')>DHCP</option>
    10.9  </select></td>
   10.10  </tr>
   10.11  <tr>
   10.12 @@ -99,7 +99,7 @@
   10.13  	       -e "s/^LAN_STATIC=.*/LAN_STATIC=\"$STATIC\"/" \
   10.14  	       -e "s/^LAN_DHCP=.*/LAN_DHCP=\"$DHCP\"/" \
   10.15  	       -e "s/^LAN_IP=.*/LAN_IP=\"$IP\"/" $1/etc/network.conf
   10.16 -	[ "$ROUTING" == "ON" ] && cat >> $1/etc/init.d/local.sh <<EOT
   10.17 +	[ "$ROUTING" = "ON" ] && cat >> $1/etc/init.d/local.sh <<EOT
   10.18  # Enable IP routing between interfaces
   10.19  echo 1 > /proc/sys/net/ipv4/ip_forward
   10.20  
    11.1 --- a/linux/stuff/pack	Sat Jul 07 11:56:18 2018 +0200
    11.2 +++ b/linux/stuff/pack	Wed Feb 27 17:43:23 2019 +0100
    11.3 @@ -1,6 +1,6 @@
    11.4  #!/bin/sh
    11.5  
    11.6 -if [ "$1" == "--build" ]; then	#install-begin
    11.7 +if [ "$1" = "--build" ]; then	#install-begin
    11.8  	uuencode -m - < unpacklz4.bin | sed -e '/^unpacklz4\.bin$/r/dev/stdin' \
    11.9  		-e '/^unpacklz4\.bin$/d' -i $0
   11.10  	cat helper.bin 2>/dev/null | uuencode -m - | sed -e \
    12.1 --- a/lpd-spooling-config/stuff/lpd-helper	Sat Jul 07 11:56:18 2018 +0200
    12.2 +++ b/lpd-spooling-config/stuff/lpd-helper	Wed Feb 27 17:43:23 2019 +0100
    12.3 @@ -2,7 +2,7 @@
    12.4  
    12.5  n=0
    12.6  for i in $(ls -tr /var/spool); do
    12.7 -	[ /var/spool/$i == $PWD ] && break
    12.8 +	[ /var/spool/$i = $PWD ] && break
    12.9  	n=$(($n+1))
   12.10  done
   12.11  cat ./"$DATAFILE" >/dev/lp$n
    13.1 --- a/module-3c509/receipt	Sat Jul 07 11:56:18 2018 +0200
    13.2 +++ b/module-3c509/receipt	Wed Feb 27 17:43:23 2019 +0100
    13.3 @@ -47,8 +47,8 @@
    13.4  <td>Tranceiver</td>
    13.5  <td><select name="XCVR3C509">
    13.6  	<option value="">default</option>
    13.7 -	<option value="0"$([ "$XCVR3C509" == "0" ] && echo ' selected="selected"')>internal</option>
    13.8 -	<option value="1"$([ "$XCVR3C509" == "1" ] && echo ' selected="selected"')>external</option>
    13.9 +	<option value="0"$([ "$XCVR3C509" = "0" ] && echo ' selected="selected"')>internal</option>
   13.10 +	<option value="1"$([ "$XCVR3C509" = "1" ] && echo ' selected="selected"')>external</option>
   13.11  </select></td>
   13.12  </tr>
   13.13  <tr>
   13.14 @@ -57,7 +57,7 @@
   13.15  EOT
   13.16  	for i in $(seq 10 -1 1); do
   13.17  	cat <<EOT
   13.18 -	<option value="$i"$([ "$MAXE3C509" == "$i" ] && echo ' selected="selected"')>$i</option>
   13.19 +	<option value="$i"$([ "$MAXE3C509" = "$i" ] && echo ' selected="selected"')>$i</option>
   13.20  EOT
   13.21  	done
   13.22  	cat <<EOT
   13.23 @@ -69,7 +69,7 @@
   13.24  EOT
   13.25  	for i in $(seq 0 6); do
   13.26  	cat <<EOT
   13.27 -	<option value="$i"$([ "$DBG3C509" == "$i" ] && echo ' selected="selected"')>$i</option>
   13.28 +	<option value="$i"$([ "$DBG3C509" = "$i" ] && echo ' selected="selected"')>$i</option>
   13.29  EOT
   13.30  	done
   13.31  	cat <<EOT
    14.1 --- a/module-cs89x0/receipt	Sat Jul 07 11:56:18 2018 +0200
    14.2 +++ b/module-cs89x0/receipt	Wed Feb 27 17:43:23 2019 +0100
    14.3 @@ -53,8 +53,8 @@
    14.4  <td>Media</td>
    14.5  <td><select name="MODECS89">
    14.6  	<option value="rj45">rj45</option>
    14.7 -	<option value="bnc"$([ "$MODECS89" == "bnc" ] && echo ' selected="selected"')>bnc</option>
    14.8 -	<option value="aui"$([ "$MODECS89" == "aui" ] && echo ' selected="selected"')>aui</option>
    14.9 +	<option value="bnc"$([ "$MODECS89" = "bnc" ] && echo ' selected="selected"')>bnc</option>
   14.10 +	<option value="aui"$([ "$MODECS89" = "aui" ] && echo ' selected="selected"')>aui</option>
   14.11  </select></td>
   14.12  </tr>
   14.13  <tr>
   14.14 @@ -63,7 +63,7 @@
   14.15  EOT
   14.16  	for i in $(seq 0 6); do
   14.17  	cat <<EOT
   14.18 -	<option value="$i"$([ "$DEBUGCS89" == "$i" ] && echo ' selected="selected"')>$i</option>
   14.19 +	<option value="$i"$([ "$DEBUGCS89" = "$i" ] && echo ' selected="selected"')>$i</option>
   14.20  EOT
   14.21  	done
   14.22  	cat <<EOT
    15.1 --- a/module-ne/receipt	Sat Jul 07 11:56:18 2018 +0200
    15.2 +++ b/module-ne/receipt	Wed Feb 27 17:43:23 2019 +0100
    15.3 @@ -30,7 +30,7 @@
    15.4  {
    15.5  	[ "$IRQNE2K" ] && IRQNE2K="|irq=${IRQNE2K// /,}"
    15.6  	[ "$IONE2K" ] && IONE2K="|io=${IONE2K// /,}"
    15.7 -	[ "$BADNE2K" == "on" ] && BADNE2K="|bad" || BADNE2K=""
    15.8 +	[ "$BADNE2K" = "on" ] && BADNE2K="|bad" || BADNE2K=""
    15.9  	grep -qs "^${PACKAGE#*-}|" $1/modules ||
   15.10  	echo "${PACKAGE#*-}${IONE2K:-|io=0x300}$IRQNE2K$BADNE2K" >> $1/modules
   15.11  }
    16.1 --- a/module-tlan/receipt	Sat Jul 07 11:56:18 2018 +0200
    16.2 +++ b/module-tlan/receipt	Wed Feb 27 17:43:23 2019 +0100
    16.3 @@ -45,16 +45,16 @@
    16.4  <td>Speed</td>
    16.5  <td><select name="SPEEDTLAN">
    16.6  	<option value="0">default</option>
    16.7 -	<option value="10"$([ "$SPEEDTLAN" == "10" ] && echo ' selected="selected"')>10 Mb</option>
    16.8 -	<option value="100"$([ "$SPEEDTLAN" == "100" ] && echo ' selected="selected"')>100 Mb</option>
    16.9 +	<option value="10"$([ "$SPEEDTLAN" = "10" ] && echo ' selected="selected"')>10 Mb</option>
   16.10 +	<option value="100"$([ "$SPEEDTLAN" = "100" ] && echo ' selected="selected"')>100 Mb</option>
   16.11  </select></td>
   16.12  </tr>
   16.13  <tr>
   16.14  <td>Mode</td>
   16.15  <td><select name="DUPLEXTLAN">
   16.16  	<option value="0">default</option>
   16.17 -	<option value="1"$([ "$DUPLEXTLAN" == "1" ] && echo ' selected="selected"')>half duplex</option>
   16.18 -	<option value="2"$([ "$DUPLEXTLAN" == "2" ] && echo ' selected="selected"')>full duplex</option>
   16.19 +	<option value="1"$([ "$DUPLEXTLAN" = "1" ] && echo ' selected="selected"')>half duplex</option>
   16.20 +	<option value="2"$([ "$DUPLEXTLAN" = "2" ] && echo ' selected="selected"')>full duplex</option>
   16.21  </select></td>
   16.22  </tr>
   16.23  </table>
    17.1 --- a/module-via-rhine/receipt	Sat Jul 07 11:56:18 2018 +0200
    17.2 +++ b/module-via-rhine/receipt	Wed Feb 27 17:43:23 2019 +0100
    17.3 @@ -44,7 +44,7 @@
    17.4  EOT
    17.5  	for i in $(seq 10 -1 1); do
    17.6  	cat <<EOT
    17.7 -	<option value="$i"$([ "$MAXERHINE" == "$i" ] && echo ' selected="selected"')>$i</option>
    17.8 +	<option value="$i"$([ "$MAXERHINE" = "$i" ] && echo ' selected="selected"')>$i</option>
    17.9  EOT
   17.10  	done
   17.11  	cat <<EOT
   17.12 @@ -56,7 +56,7 @@
   17.13  EOT
   17.14  	for i in $(seq 0 7); do
   17.15  	cat <<EOT
   17.16 -	<option value="$i"$([ "$DBGRHINE" == "$i" ] && echo ' selected="selected"')>$i</option>
   17.17 +	<option value="$i"$([ "$DBGRHINE" = "$i" ] && echo ' selected="selected"')>$i</option>
   17.18  EOT
   17.19  	done
   17.20  	cat <<EOT
    18.1 --- a/ppp/receipt	Sat Jul 07 11:56:18 2018 +0200
    18.2 +++ b/ppp/receipt	Wed Feb 27 17:43:23 2019 +0100
    18.3 @@ -104,7 +104,7 @@
    18.4  <td>Connection script</td>
    18.5  <td><select name="DIALER_SCRIPT">
    18.6  	<option value="/etc/ppp/ppp-on-dialer">/etc/ppp/ppp-on-dialer</option>
    18.7 -	<option value="/etc/ppp/scripts/callback"$([ "$DIALER_SCRIPT" == "/etc/ppp/scripts/callback" ] && 
    18.8 +	<option value="/etc/ppp/scripts/callback"$([ "$DIALER_SCRIPT" = "/etc/ppp/scripts/callback" ] && 
    18.9  	echo ' selected="selected"')>/etc/ppp/scripts/callback</option>
   18.10  </select></td>
   18.11  </tr>
    19.1 --- a/wiki/stuff/var/www/wiki/index.sh	Sat Jul 07 11:56:18 2018 +0200
    19.2 +++ b/wiki/stuff/var/www/wiki/index.sh	Wed Feb 27 17:43:23 2019 +0100
    19.3 @@ -45,7 +45,7 @@
    19.4  {
    19.5  	local tmp
    19.6  	tmp="$(echo $1$(date +%d) | md5sum | cut -c1-8)"
    19.7 -	[ "$(POST sc)" == "$1" ] && AUTH=$tmp || [ "$AUTH" == "$tmp" ]
    19.8 +	[ "$(POST sc)" = "$1" ] && AUTH=$tmp || [ "$AUTH" = "$tmp" ]
    19.9  }
   19.10  
   19.11  authentified()
   19.12 @@ -75,7 +75,7 @@
   19.13  		grep -q "^$name()" $i || continue
   19.14  		. $i
   19.15  		eval $name "$@"
   19.16 -		[ $? == 0 ] && status=true
   19.17 +		[ $? = 0 ] && status=true
   19.18  	done 2> /tmp/tazwiki$$stderr
   19.19  	[ -s /tmp/tazwiki$$stderr ] &&
   19.20  		logger -t "httpd/wiki/plugin" < /tmp/tazwiki$$stderr
   19.21 @@ -152,7 +152,7 @@
   19.22  		CONTENT="$(cat "$PAGE_txt")"
   19.23  	fi
   19.24  	# Restaurer une page
   19.25 -	[ -n "$(GET page)" -a -n "$gtime" -a "$(GET restore)" == 1 ] &&
   19.26 +	[ -n "$(GET page)" -a -n "$gtime" -a "$(GET restore)" = 1 ] &&
   19.27  	[ -r "$BACKUP_DIR$PAGE_TITLE/$gtime" ] && 
   19.28  	CONTENT="$(cat $BACKUP_DIR$PAGE_TITLE/$gtime)"
   19.29  	CONTENT="$(sed -e 's/\$/\&#036;/g' -e 's/\\/\&#092;/g' <<EOT
   19.30 @@ -461,9 +461,9 @@
   19.31  
   19.32  # Remplacement dans le template
   19.33  RECENT="<a href=\"$urlbase?action=recent\" accesskey=\"3\">$RECENT_CHANGES</a>"
   19.34 -[ "$action" == "recent" ] && RECENT=$RECENT_CHANGES
   19.35 +[ "$action" = "recent" ] && RECENT=$RECENT_CHANGES
   19.36  HOME="<a href=\"$urlbase?page=$START_PAGE\" accesskey=\"1\">$HOME_BUTTON</a>"
   19.37 -[ "$PAGE_TITLE" == "$START_PAGE" -a "$action" != "search" ] && HOME=$HOME_BUTTON
   19.38 +[ "$PAGE_TITLE" = "$START_PAGE" -a "$action" != "search" ] && HOME=$HOME_BUTTON
   19.39  HELP="\1<a href=\"$urlbase?page=$HELP_BUTTON\" accesskey=\"2\" rel=\"nofollow\">$HELP_BUTTON</a>\2"
   19.40  [ "$action" != "edit" ] && HELP=""
   19.41  
    20.1 --- a/wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh	Sat Jul 07 11:56:18 2018 +0200
    20.2 +++ b/wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh	Wed Feb 27 17:43:23 2019 +0100
    20.3 @@ -47,7 +47,7 @@
    20.4  	secret="admin.secret"
    20.5  	if [ -n "$(POST setpass)" ]; then
    20.6  		if [ -z "$curpass" ]; then	# unauthorized
    20.7 -			if [ ! -s $secret -o "$(cat $secret 2> /dev/null)" == \
    20.8 +			if [ ! -s $secret -o "$(cat $secret 2> /dev/null)" = \
    20.9  				  "$(echo $(POST password) | md5sum)" ]; then
   20.10  				curpass="$(POST password)"
   20.11  			fi
    21.1 --- a/wiki/stuff/var/www/wiki/plugins/wkp_Password.sh	Sat Jul 07 11:56:18 2018 +0200
    21.2 +++ b/wiki/stuff/var/www/wiki/plugins/wkp_Password.sh	Wed Feb 27 17:43:23 2019 +0100
    21.3 @@ -15,7 +15,7 @@
    21.4  		esac
    21.5  		hash="$(sed '/{HASHPASSWORD=.*}/!d;s/.*{HASHPASSWORD=\([^}]*\)}.*/\1/;q' <$1)"
    21.6  		cookie="pagepass$(pagepass_hash $PWD$PAGE_txt)"
    21.7 -		[ "$(COOKIE $cookie)" == "$hash" ] && return
    21.8 +		[ "$(COOKIE $cookie)" = "$hash" ] && return
    21.9  		header
   21.10  		echo "<script> history.go(-1); </script>"
   21.11  		exit 0
   21.12 @@ -24,9 +24,9 @@
   21.13  
   21.14  action()
   21.15  {
   21.16 -	[ "$1" == "pagepass" ] || return 1
   21.17 +	[ "$1" = "pagepass" ] || return 1
   21.18  	uri="$SCRIPT_NAME?page=$(POST page)&auth=$(POST auth)"
   21.19 -	if [ "$(pagepass_hash $(POST pass))" == "$(POST hash)" ]; then
   21.20 +	if [ "$(pagepass_hash $(POST pass))" = "$(POST hash)" ]; then
   21.21  		header  "HTTP/1.0 302 Found" \
   21.22  			"location: $uri" \
   21.23  			"Set-Cookie: $(POST cookie)=$(POST hash)"
    22.1 --- a/wiki/stuff/var/www/wiki/plugins/wkp_Upload.sh	Sat Jul 07 11:56:18 2018 +0200
    22.2 +++ b/wiki/stuff/var/www/wiki/plugins/wkp_Upload.sh	Wed Feb 27 17:43:23 2019 +0100
    22.3 @@ -63,7 +63,7 @@
    22.4  		ls pages/data | while read file; do
    22.5  			stat -c "%s %n" pages/data/$file
    22.6  		done | while read size file; do
    22.7 -			[ $filesize == $size ] && 
    22.8 +			[ $filesize = $size ] && 
    22.9  			cmp $(FILE file tmpname) $file > /dev/null &&
   22.10  			ln -s $(basename $file) pages/data/$n$name && break
   22.11  		done