From e0fef8561f95a80c310d76aa65d3190a9e19b2da Mon Sep 17 00:00:00 2001 From: Teddysun Date: Wed, 23 Mar 2022 10:46:03 +0900 Subject: [PATCH] Update InstallNET.sh --- InstallNET.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InstallNET.sh b/InstallNET.sh index f221708..32b87a1 100644 --- a/InstallNET.sh +++ b/InstallNET.sh @@ -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