From: Harald Hoyer Date: Thu, 29 Mar 2012 12:36:43 +0000 (+0200) Subject: lsinitrd.sh: no "" for shell regex X-Git-Tag: 018~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5c2fc11413e65d7dcd52a3771b5eb34a2d4e952;p=thirdparty%2Fdracut.git lsinitrd.sh: no "" for shell regex --- diff --git a/lsinitrd.sh b/lsinitrd.sh index 11e5c7a32..ebae1e0e7 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -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