diff --git a/lib/common.sh b/lib/common.sh index c382d9f..110c7b6 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -67,6 +67,9 @@ check_command() { esac done shift $((OPTIND-1)) + if [ -z "$1" ]; then + error "No command specified for checking" + fi trace "Checking $1 is an accessible command" if ! command -v "$1" >/dev/null 2>&1; then if is_true "$_hard"; then