From: Fabian Vogt Date: Mon, 4 May 2020 08:09:07 +0000 (+0200) Subject: Fix test in lsinitrd X-Git-Tag: 051~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32dfd41688a0a2aee59a62dd661c808a935d91a4;p=thirdparty%2Fdracut.git Fix test in lsinitrd If $uefi is empty, this evaluated to true previously, resulting in "initrd in UEFI: : 13M". --- diff --git a/lsinitrd.sh b/lsinitrd.sh index b5c73f62f..ea0c7f62a 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -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