From d9df3d035413a745ded99959a4bf83ea5f09e804 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sun, 14 May 2023 03:01:46 +0200 Subject: [PATCH] Fix provision.sh --- provision.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/provision.sh b/provision.sh index 7ad4caf..c0ee697 100755 --- a/provision.sh +++ b/provision.sh @@ -18,7 +18,9 @@ install_modules() { fi } +BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass --ask-become-pass" cd "$(dirname "$0")" || exit 255 + if [ "$1" = "--dry" ]; then EXEC="echo" shift @@ -26,9 +28,10 @@ else EXEC="eval" fi -BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass --ask-become-pass" -TAG="$1" -shift +if [ "$#" -gt 0 ]; then + TAG="$1" + shift +fi case $TAG in "")