Update InstallNET.sh

This commit is contained in:
Molly Lau 2022-12-07 09:35:06 +09:00 committed by GitHub
parent 4d722c8d72
commit 6a2a23b5de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1590,7 +1590,7 @@ elif [[ ! -z "$GRUBTYPE" && "$GRUBTYPE" == "isGrub2" ]]; then
[[ "$(cat $LpFile | grep '^linux /boot/')" ]] && BootDIR='/boot' || BootDIR=''
fi
else
[[ -n "$(grep 'linux.*/\|kernel.*/' $GRUBDIR/$GRUBFILE |awk '{print $2}' |tail -n 1 |grep '^/boot/')" ]] && BootDIR='/boot' || BootDIR='';
[[ -n "$(grep 'linux.*/\|kernel.*/' $GRUBDIR/$GRUBFILE | awk '{print $2}' | tail -n 1 | grep '^/boot/')" ]] && BootDIR='/boot' || BootDIR='';
fi
# Confirm if BIOS or UEFI firmware
if [[ "$VER" == "x86_64" || "$VER" == "amd64" ]]; then