From acc6d7fadcff9b92e6835247ad090f7b02b55d82 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 4 Jan 2023 21:02:33 +0100 Subject: [PATCH] cd --- provision.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/provision.sh b/provision.sh index 43dac8c..ec6045b 100755 --- a/provision.sh +++ b/provision.sh @@ -8,6 +8,7 @@ usage() { printf '$ %s\n' "$0 reboot [-f|--force]" } +cd "$(dirname "$0")" || exit 255 BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass --ask-become-pass" if [ -z "$(ansible-galaxy collection list community.general 2>/dev/null)" ]; then