]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - test/TEST-20-NFS/client-init.sh
Specify strstr tightly, add strglob/strglobin.
[thirdparty/dracut.git] / test / TEST-20-NFS / client-init.sh
index ad6a656c9bff76c8234ff338cdb654490e784e14..f6bbdd92ffed9ce18b81e5636bb16457fba81c4e 100755 (executable)
@@ -4,7 +4,7 @@ exec >/dev/console 2>&1
 export TERM=linux
 export PS1='initramfs-test:\w\$ '
 CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
-strstr() { [ "${1#*$2*}" != "$1" ]; }
+strstr() { [ "${1#*"$2"*}" != "$1" ]; }
 
 stty sane
 strstr "$CMDLINE" "rd.shell" && sh -i