Updated dependency check

master
Aaron Johnon 4 years ago
parent f75c003f07
commit 670eef2c30

@ -9,7 +9,11 @@ alias sql="$SQL"
# Check for dependencies # Check for dependencies
if ! which $SQL >/dev/null 2>&1; then if ! which $SQL >/dev/null 2>&1; then
printf '%s\n' "ERROR 12: Missing dependency -- '$sql' command not found." >&2 printf '%s\n' "ERROR 12: Missing dependency -- '$SQL' command not found." >&2
exit 12
fi
if ! which curl >/dev/null 2>&1; then
printf '%s\n' "ERROR 12: Missing dependency -- 'curl' command not found." >&2
exit 12 exit 12
fi fi

Loading…
Cancel
Save