summaryrefslogtreecommitdiff
path: root/lsinitrd.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-03-29 14:36:43 +0200
committerHarald Hoyer <harald@redhat.com>2012-03-29 14:36:43 +0200
commitb5c2fc11413e65d7dcd52a3771b5eb34a2d4e952 (patch)
tree8b2f52bd27fe05c6033e20d5831dbe50e0a391f6 /lsinitrd.sh
parent513d26f7b7ad2ec9619f91174026736cda3c3e67 (diff)
downloaddracut-b5c2fc11413e65d7dcd52a3771b5eb34a2d4e952.tar.gz
dracut-b5c2fc11413e65d7dcd52a3771b5eb34a2d4e952.tar.bz2
dracut-b5c2fc11413e65d7dcd52a3771b5eb34a2d4e952.zip
lsinitrd.sh: no "" for shell regex
Diffstat (limited to 'lsinitrd.sh')
-rwxr-xr-xlsinitrd.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lsinitrd.sh b/lsinitrd.sh
index 11e5c7a3..ebae1e0e 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