From 43dfbeec7b6a63323810c8d53f1c00b7b1ec28a1 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 22 Feb 2012 13:04:16 +0100 Subject: [PATCH] dracut-functions.sh: turn off regexp for strstr() --- dracut-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-functions.sh b/dracut-functions.sh index 17ffd680c..653f401b5 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -40,7 +40,7 @@ fi } # Generic substring function. If $2 is in $1, return 0. -strstr() { [[ $1 =~ $2 ]]; } +strstr() { [ "${1#*$2*}" != "$1" ]; } # Create all subdirectories for given path without creating the last element. # $1 = path -- 2.47.3