diff --git a/reinstall.sh b/reinstall.sh index 8be31e6..fb48c66 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -2588,6 +2588,7 @@ grep_efi_entry() { grep -E '^Boot[0-9a-fA-F]{4}' } +# trans.sh 有同名方法 grep_efi_index() { awk '{print $1}' | sed -e 's/Boot//' -e 's/\*//' } diff --git a/trans.sh b/trans.sh index 412e178..9950c65 100644 --- a/trans.sh +++ b/trans.sh @@ -822,8 +822,9 @@ del_invalid_efi_entry() { done < <(efibootmgr | grep 'HD(.*,GPT,') } +# reinstall.sh 有同名方法 grep_efi_index() { - awk -F '*' '{print $1}' | sed 's/Boot//' + awk '{print $1}' | sed -e 's/Boot//' -e 's/\*//' } # 某些机器可能不会回落到 bootx64.efi