Browse Source

Fix test in lsinitrd

If $uefi is empty, this evaluated to true previously,
resulting in "initrd in UEFI: : 13M".
master
Fabian Vogt 5 years ago committed by Daniel Molkentin
parent
commit
32dfd41688
  1. 2
      lsinitrd.sh

2
lsinitrd.sh

@ -206,7 +206,7 @@ if [ "$bin" = "MZ" ]; then @@ -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

Loading…
Cancel
Save