]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
lsinitrd.sh: no "" for shell regex
authorHarald Hoyer <harald@redhat.com>
Thu, 29 Mar 2012 12:36:43 +0000 (14:36 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 29 Mar 2012 12:36:43 +0000 (14:36 +0200)
lsinitrd.sh

index 11e5c7a329546e719434bd3b110b8f70522847ce..ebae1e0e7a65e478e6fad02082e0f85365b5bcd9 100755 (executable)
@@ -40,13 +40,13 @@ if echo "test"|xz|xz -dc --single-stream >/dev/null 2>&1; then
     XZ_SINGLE_STREAM="--single-stream"
 fi
 
-if [[ "$FILE_T" =~ ": gzip compressed data" ]]; then
+if [[ "$FILE_T" =~ :\ gzip\ compressed\ data ]]; then
     CAT=zcat
-elif [[ "$FILE_T" =~ ": xz compressed data" ]]; then
+elif [[ "$FILE_T" =~ :\ xz\ compressed\ data ]]; then
     CAT="xzcat $XZ_SINGLE_STREAM"
-elif [[ "$FILE_T" =~ ": XZ compressed data" ]]; then
+elif [[ "$FILE_T" =~ :\ XZ\ compressed\ data ]]; then
     CAT="xzcat $XZ_SINGLE_STREAM"
-elif [[ "$FILE_T" =~ ": data" ]]; then
+elif [[ "$FILE_T" =~ :\ data ]]; then
     CAT=lzcat
 fi