fix: correct Alpine package install error message

This commit is contained in:
rowanchen-com
2026-03-17 13:10:36 +08:00
parent 735e738413
commit 64528c4f3e

View File

@@ -209,7 +209,11 @@ check_status() {
# dependent pkg install fail
[[ ! -f $is_pkg_ok ]] && {
msg err "安装依赖包失败"
if [[ $cmd =~ apk ]]; then
msg err "请尝试手动安装依赖包: apk update; apk add $is_pkg"
else
msg err "请尝试手动安装依赖包: $cmd update -y; $cmd install -y $is_pkg"
fi
is_fail=1
}