From 2d6bba789c05af33393ed558d30ccce7bf00895f Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 29 Sep 2026 10:32:04 -0700 Subject: [PATCH] setup, ensure variables are quoted. --- setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index 14dda03..f2478e2 100755 --- a/setup.sh +++ b/setup.sh @@ -5,7 +5,7 @@ DIR="$(dirname -- "${BASH_SOURCE[0]}")" PROG="$(basename -- "${BASH_SOURCE[0]}")" -LOCAL=$DIR/local.yml +LOCAL="$DIR/local.yml" URL="https://git.hyperling.com/me/env-ansible" if [[ -z $BRANCH ]]; then export BRANCH="main" @@ -215,14 +215,14 @@ lock_file=/tmp/ansible-playbook.lock if [[ "$ansible_exists" == 0 ]]; then echo "Playbook is already being executed. Exiting." exit 0 -elif [[ -e $lock_file ]]; then +elif [[ -e "$lock_file" ]]; then echo "Playbook not being executed. Removing lock file." - sudo mv -v "$lock_file" "${lock_file}.diaabled" + sudo mv -v "$lock_file" "${lock_file}.disabled" fi echo "- Verified!" echo "Provisioning Ansible..." -if [[ $local == "Y" ]]; then +if [[ "$local" == "Y" ]]; then sudo ansible-playbook $LOCAL else sudo ansible-pull -U $URL.git --checkout $branch