mirror of
https://github.com/nezhahq/scripts.git
synced 2026-02-21 10:27:27 +08:00
curl is necessary
This commit is contained in:
parent
29f8c04989
commit
ac0f93afd8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user