Fix test in lsinitrd

If $uefi is empty, this evaluated to true previously,
resulting in "initrd in UEFI: : 13M".
master
Fabian Vogt 2020-05-04 10:09:07 +02:00 committed by Daniel Molkentin
parent cb9e6881dd
commit 32dfd41688
1 changed files with 1 additions and 1 deletions

View File

@ -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