Properly error out on missing dep
This commit is contained in:
parent
796e7a1213
commit
fc109e5e58
@ -294,6 +294,7 @@ check_script_dependencies() {
|
|||||||
for dep in "${SCRIPT_DEPENDENCIES[@]}"; do
|
for dep in "${SCRIPT_DEPENDENCIES[@]}"; do
|
||||||
if ! which "${dep}" >/dev/null 2>&1; then
|
if ! which "${dep}" >/dev/null 2>&1; then
|
||||||
log "error" "Script dependency $(important "${dep}") could not be located, contact your local administrator to install this dependency"
|
log "error" "Script dependency $(important "${dep}") could not be located, contact your local administrator to install this dependency"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user