mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-07 21:09:56 +00:00
core: 修复 efi 条目 inactive 时 (没有*符号) 报错
https://manpages.debian.org/unstable/efibootmgr/efibootmgr.8.en.html#Displaying_the_current_settings_(must_be_root):
This commit is contained in:
parent
0da940b2a7
commit
dd1b3abbfd
@ -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/\*//'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user