curl is necessary

This commit is contained in:
Tao Chen 2025-05-22 17:39:27 +08:00
parent 29f8c04989
commit ac0f93afd8

View File

@ -35,7 +35,7 @@ sudo() {
}
deps_check() {
local deps="unzip grep"
local deps="curl unzip grep"
local _err=0
local missing=""
@ -46,11 +46,6 @@ deps_check() {
fi
done
if ! command -v curl >/dev/null 2>&1 && ! command -v wget >/dev/null 2>&1; then
_err=1
missing="${missing} curl"
fi
if [ "$_err" -ne 0 ]; then
err "Missing dependencies:$missing. Please install them and try again."
exit 1