Harald Hoyer 308914
From 32dfd41688a0a2aee59a62dd661c808a935d91a4 Mon Sep 17 00:00:00 2001
Harald Hoyer 308914
From: Fabian Vogt <fvogt@suse.de>
Harald Hoyer 308914
Date: Mon, 4 May 2020 10:09:07 +0200
Harald Hoyer 308914
Subject: [PATCH] Fix test in lsinitrd
Harald Hoyer 308914
Harald Hoyer 308914
If $uefi is empty, this evaluated to true previously,
Harald Hoyer 308914
resulting in "initrd in UEFI: : 13M".
Harald Hoyer 308914
---
Harald Hoyer 308914
 lsinitrd.sh | 2 +-
Harald Hoyer 308914
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 308914
Harald Hoyer 308914
diff --git a/lsinitrd.sh b/lsinitrd.sh
Harald Hoyer 308914
index b5c73f62..ea0c7f62 100755
Harald Hoyer 308914
--- a/lsinitrd.sh
Harald Hoyer 308914
+++ b/lsinitrd.sh
Harald Hoyer 308914
@@ -206,7 +206,7 @@ if [ "$bin" = "MZ" ]; then
Harald Hoyer 308914
 fi
Harald Hoyer 308914
 
Harald Hoyer 308914
 if (( ${#filenames[@]} <= 0 )) && [[ -z "$unpack" ]] && [[ -z "$unpackearly" ]]; then
Harald Hoyer 308914
-    if [ -n $uefi ]; then
Harald Hoyer 308914
+    if [ -n "$uefi" ]; then
Harald Hoyer 308914
         echo -n "initrd in UEFI: $uefi: "
Harald Hoyer 308914
         du -h $image | while read a b || [ -n "$a" ]; do echo $a;done
Harald Hoyer 308914
         if [ -f "$TMPDIR/osrel.txt" ]; then
Harald Hoyer 308914