Update InstallNET.sh

This commit is contained in:
Teddysun 2022-03-23 10:46:03 +09:00
parent ea448f17ff
commit e0fef8561f
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -255,7 +255,7 @@ function diskType(){
function getGrub(){
Boot="${1:-/boot}"
folder=`find "$Boot" -type d -name "grub*" 2>/dev/null |tail -n1`
folder=`find "$Boot" -type d -name "grub*" 2>/dev/null | sort | tail -n1`
[ -n "$folder" ] || return
fileName=`ls -1 "$folder" 2>/dev/null |grep '^grub.conf$\|^grub.cfg$'`
if [ -z "$fileName" ]; then