fix: force install full wget on Alpine to replace BusyBox version

This commit is contained in:
rowanchen-com
2026-03-21 18:21:39 +08:00
parent 4b18389b35
commit 2199ef62ce

View File

@@ -353,7 +353,10 @@ main() {
# install dependent pkg
if [[ $cmd =~ apk ]]; then
install_pkg $is_pkg
# Alpine: force install full versions to replace BusyBox applets
apk update &>/dev/null
apk add $is_pkg &>/dev/null
[[ $? == 0 ]] && >$is_pkg_ok
else
install_pkg $is_pkg &
fi