]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix test in lsinitrd
authorFabian Vogt <fvogt@suse.de>
Mon, 4 May 2020 08:09:07 +0000 (10:09 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Mon, 4 May 2020 09:48:09 +0000 (11:48 +0200)
If $uefi is empty, this evaluated to true previously,
resulting in "initrd in UEFI: : 13M".

lsinitrd.sh

index b5c73f62f228b58bc2a51697fcebdb8a5669a09c..ea0c7f62a6d6c31d702617a677c20ec838224e17 100755 (executable)
@@ -206,7 +206,7 @@ if [ "$bin" = "MZ" ]; then
 fi
 
 if (( ${#filenames[@]} <= 0 )) && [[ -z "$unpack" ]] && [[ -z "$unpackearly" ]]; then
-    if [ -n $uefi ]; then
+    if [ -n "$uefi" ]; then
         echo -n "initrd in UEFI: $uefi: "
         du -h $image | while read a b || [ -n "$a" ]; do echo $a;done
         if [ -f "$TMPDIR/osrel.txt" ]; then