From a09506b3b314694a5c4c7895ed18780501a665db Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 24 Oct 2026 17:15:24 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE=E5=B0=8F?= =?UTF-8?q?=E9=97=AA=E5=AD=98=E7=9B=AE=E5=BD=95=E6=97=B6=E7=9A=84=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menus/4_setboot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/menus/4_setboot.sh b/scripts/menus/4_setboot.sh index ec8a5721..34199aa4 100644 --- a/scripts/menus/4_setboot.sh +++ b/scripts/menus/4_setboot.sh @@ -155,8 +155,8 @@ setboot() { set_usb_dir() { while true; do comp_box "$SETBOOT_SELECT_INSTALL_DIR" - du -hL /mnt | - awk '{print NR") "$2" ($SETBOOT_SPACE_USED$1")"}' | + du -hL -d 2 /mnt | + awk '{print NR") "$2" ($SETBOOT_SPACE_USED"$1")"}' | while IFS= read -r line; do content_line "$line" done @@ -164,7 +164,7 @@ setboot() { content_line "0) $COMMON_BACK" separator_line "=" read -r -p "$COMMON_INPUT> " num - BINDIR=$(du -hL /mnt | awk '{print $2}' | sed -n "$num"p) + BINDIR=$(du -hL -d 2 /mnt | awk '{print $2}' | sed -n "$num"p) if [ "$num" = 0 ]; then return 1 elif [ -z "$BINDIR" ]; then