mirror of
https://github.com/bin456789/reinstall.git
synced 2025-03-13 23:24:43 +08:00
修正 install_pkg 的返回值
This commit is contained in:
parent
b617858c89
commit
6164b0c301
@ -291,7 +291,8 @@ install_pkg() {
|
||||
pacman -Syu --noconfirm $pkgs ||
|
||||
apk add $pkgs
|
||||
} 2>/dev/null
|
||||
break
|
||||
# break 返回值始终为 0
|
||||
return
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user