From c5667b57e66da4073e7f1c8c0865e4117fe5fa7b Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sat, 3 Sep 2022 18:38:34 +0200 Subject: [PATCH] added help in deploy script --- deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy.sh b/deploy.sh index d87f3ce..5397155 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +if [ "$#" -lt 2 ]; then + echo "Usage: $0 [playbook...]" + exit +fi + LIMIT="" LIMIT_PRESENT=$(echo "$1" | grep ".yml") if [ "${LIMIT_PRESENT}" == "" ]; then