Properly error out on missing dep

This commit is contained in:
Price Hiller 2022-01-15 21:27:23 -06:00
parent 796e7a1213
commit fc109e5e58

View File

@ -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
} }