Skip to content

Commit

Permalink
Update InstallNET.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeClub authored Aug 24, 2021
1 parent eb3c487 commit 727d4d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InstallNET.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ function getGrub(){
if [ -z "$fileName" ]; then
ls -1 "$folder" 2>/dev/null |grep -q '^grubenv$'
[ $? -eq 0 ] || return
grubEnv=`readlink -f "${folder}/grubenv"`
folder=`dirname "$grubEnv"`
folder=`find "$Boot" -type f -name "grubenv" 2>/dev/null |xargs dirname |grep -v "$folder" |head -n1`
[ -n "$folder" ] || return
fileName=`ls -1 "$folder" 2>/dev/null |grep '^grub.conf$\|^grub.cfg$'`
fi
[ -n "$fileName" ] || return
Expand Down

0 comments on commit 727d4d2

Please sign in to comment.