mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
fail if check doesnt exist
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
83ed8122ef
commit
57365ba1e4
1 changed files with 6 additions and 1 deletions
|
@ -112,7 +112,12 @@ main () {
|
|||
if [ -z "$check" ]; then
|
||||
cis
|
||||
else
|
||||
"$check"
|
||||
if command -v "$check" 2>/dev/null 1>&2; then
|
||||
"$check"
|
||||
else
|
||||
echo "Check \"$check\" doesn't seem to exist."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
printf "\n"
|
||||
|
|
Loading…
Reference in a new issue