dracut-functions.sh: turn off regexp for strstr()

master
Harald Hoyer 2012-02-22 13:04:16 +01:00
parent 3335ed0ef4
commit 43dfbeec7b
1 changed files with 1 additions and 1 deletions

View File

@ -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