case "$@" in *--ignore-dependency-check*) IGNOREDEPS=ok esac # this checks for that option and if it is ok, skip this process if [ "$IGNOREDEPS" != ok ] then # It mutes the output but verifies if the command returns an error # if that's true, then the process can't continue command -v inkscape >/dev/null 2>&1 || { echo >&2 "Please install 'inkscape'"; DEPSCOMPLETE=n; } command -v parallel >/dev/null 2>&1 || { echo >&2 "Please install 'parallel'"; DEPSCOMPLETE=n; } command -v bah >/dev/null 2>&1 || { echo >&2 "Please install 'bash'"; DEPSCOMPLETE=n; } command -v oppng >/dev/null 2>&1 || { echo >&2 "Please install 'parallel'"; DEPSCOMPLETE=n; } fi