mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-10-24 20:00:01 +00:00
~修复设置小闪存目录时的报错
This commit is contained in:
@@ -155,8 +155,8 @@ setboot() {
|
|||||||
set_usb_dir() {
|
set_usb_dir() {
|
||||||
while true; do
|
while true; do
|
||||||
comp_box "$SETBOOT_SELECT_INSTALL_DIR"
|
comp_box "$SETBOOT_SELECT_INSTALL_DIR"
|
||||||
du -hL /mnt |
|
du -hL -d 2 /mnt |
|
||||||
awk '{print NR") "$2" ($SETBOOT_SPACE_USED$1")"}' |
|
awk '{print NR") "$2" ($SETBOOT_SPACE_USED"$1")"}' |
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
content_line "$line"
|
content_line "$line"
|
||||||
done
|
done
|
||||||
@@ -164,7 +164,7 @@ setboot() {
|
|||||||
content_line "0) $COMMON_BACK"
|
content_line "0) $COMMON_BACK"
|
||||||
separator_line "="
|
separator_line "="
|
||||||
read -r -p "$COMMON_INPUT> " num
|
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
|
if [ "$num" = 0 ]; then
|
||||||
return 1
|
return 1
|
||||||
elif [ -z "$BINDIR" ]; then
|
elif [ -z "$BINDIR" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user