summarylogtreecommitdiffstats
path: root/sk-boot-to-windows.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sk-boot-to-windows.sh')
-rw-r--r--sk-boot-to-windows.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sk-boot-to-windows.sh b/sk-boot-to-windows.sh
index 3ed06d5e777c..b6270af146b6 100644
--- a/sk-boot-to-windows.sh
+++ b/sk-boot-to-windows.sh
@@ -4,7 +4,7 @@
boot_list=$(efibootmgr)
# 使用 grep 命令查找包含 "Windows Boot Manager" 的启动项行,并提取其编号
-boot_entry=$(echo "$boot_list" | grep -i "Windows Boot Manager" | grep -i "bootmgfw.efi" | awk '{print $1}') | head -n 1
+boot_entry=$(echo "$boot_list" | grep -i "Windows Boot Manager" | grep -i "bootmgfw.efi" | awk '{print $1}' | head -n 1)
# 去掉启动项编号中的前缀 "Boot" 和后面的星号 "*",只保留编号部分
boot_entry=${boot_entry#Boot}