fix: add dependency check for curl.
This commit is contained in:
1
mc
1
mc
@@ -96,6 +96,7 @@ function main() {
|
||||
# remove command from arg list while preserving quoted strings.
|
||||
args=("${args[@]:1}")
|
||||
|
||||
if [[ ! $(which curl) ]]; then echo "curl is required"; exit 1; fi
|
||||
if [[ ! $(which jq) ]]; then echo "jq is required"; exit 1; fi
|
||||
|
||||
for command in "${!commands[@]}"; do
|
||||
|
Reference in New Issue
Block a user