slitaz-dev-tools diff mirror-tools/rootfs/usr/share/mirror-host/boot/shellinabox.sh @ rev 309
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 08:23:49 2019 +0100 (2019-02-26) |
parents | e0a09d90b2cb |
children |
line diff
1.1 --- a/mirror-tools/rootfs/usr/share/mirror-host/boot/shellinabox.sh Thu Feb 24 01:59:21 2011 +0000 1.2 +++ b/mirror-tools/rootfs/usr/share/mirror-host/boot/shellinabox.sh Tue Feb 26 08:23:49 2019 +0100 1.3 @@ -64,11 +64,11 @@ 1.4 auth() 1.5 { 1.6 while read host md5 ; do 1.7 - [ "${host#*.}" == "${1#*.}" ] && break 1.8 + [ "${host#*.}" = "${1#*.}" ] && break 1.9 done < $(dirname $exe)/shellinabox.secrets 1.10 echo -n "$host password: " 1.11 read -s -t 30 password || exit 1 1.12 - [ "$(echo $password | md5sum)" == "$md5 -" ] || exit 1 1.13 + [ "$(echo $password | md5sum)" = "$md5 -" ] || exit 1 1.14 echo "" 1.15 } 1.16