From 624f0d2f3259e2aefa338c2af5587440a55bd94e Mon Sep 17 00:00:00 2001 From: Atlas Date: Wed, 11 Feb 2026 05:20:27 +0000 Subject: [PATCH] fix: add quoting and error handling for shellcheck compliance --- git.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git.sh b/git.sh index d5e6cfb..9dce588 100644 --- a/git.sh +++ b/git.sh @@ -14,7 +14,7 @@ if [ "$1" = "" ]; then fi if [ "$2" = git.flag ]; then #cd to the folder where the git deployment lives -cd $1 +cd "$1" || exit if [ -e "git.flag" ]; then slackecho "Deploying to $1" @@ -23,10 +23,10 @@ cd $1 #git fetch / reset deployment git fetch --all - git reset --hard origin/$3 + git reset --hard origin/"$3" #fix permissions - chown www-data:www-data $1 -R + chown www-data:www-data "$1" -R slackecho "Completed" fi