dracut-functions.sh: no '' for shell regex
authorHarald Hoyer <harald@redhat.com>
Thu, 29 Mar 2012 12:38:45 +0000 (14:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 29 Mar 2012 12:38:45 +0000 (14:38 +0200)
dracut-functions.sh

index 563669e..a77c42d 100755 (executable)
@@ -172,7 +172,7 @@ get_fs_env() {
     unset ID_FS_UUID
     eval $(udevadm info --query=env --name=$1 \
         | while read line; do
-            [[ "$line" =~ 'ID_FS_(TYPE|UUID)=' ]] && echo $line;
+            [[ "$line" =~ ID_FS_(TYPE|UUID)= ]] && echo $line;
             done)
     [[ $ID_FS_TYPE ]] && return 0