added help in deploy script

This commit is contained in:
Bryan Joshua Pedini 2022-09-03 18:38:34 +02:00
parent 485811ff21
commit c5667b57e6
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/usr/bin/env bash
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <limit> <playbook> [playbook...]"
exit
fi
LIMIT=""
LIMIT_PRESENT=$(echo "$1" | grep ".yml")
if [ "${LIMIT_PRESENT}" == "" ]; then