core: 优化代码

This commit is contained in:
bin456789
2024-03-05 23:01:24 +08:00
parent d59668b663
commit bec14c13c1
9 changed files with 80 additions and 33 deletions

View File

@@ -19,7 +19,6 @@ update_part() {
# ubuntu grownpart
# 找出主硬盘
# shellcheck disable=SC2010
root_drive=$(mount | awk '$3=="/" {print $1}')
xda=$(lsblk -r --inverse "$root_drive" | grep -w disk | awk '{print $1}')