]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - test/TEST-12-RAID-DEG/test-init.sh
Specify strstr tightly, add strglob/strglobin.
[thirdparty/dracut.git] / test / TEST-12-RAID-DEG / test-init.sh
index 62afcee003088b36c08183d6683168bf32ca1866..c64523f65b177766d39e6e83c1e8b363b80bed75 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 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)
 command -v plymouth >/dev/null && plymouth --quit
 exec >/dev/console 2>&1