]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - test/TEST-03-USR-MOUNT/test-init.sh
Specify strstr tightly, add strglob/strglobin.
[thirdparty/dracut.git] / test / TEST-03-USR-MOUNT / test-init.sh
index 63520ab6c32450be8b7160acccfc955411a84106..e4f37793ba54eee0ce803f2a393c9fa98a84ce88 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 >/dev/watchdog
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
-strstr() { [ "${1#*$2*}" != "$1" ]; }
+strstr() { [ "${1#*"$2"*}" != "$1" ]; }
 CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
 plymouth --quit
 exec </dev/console >/dev/console 2>&1