From 53a9f4052a69772fd6c1edf3ecb945d93b6c2cfc Mon Sep 17 00:00:00 2001 From: Graham Helton Date: Sun, 16 Oct 2022 15:45:25 -0400 Subject: [PATCH] Fixed bugs --- autodeploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autodeploy.sh b/autodeploy.sh index 52fd0c2..b037855 100755 --- a/autodeploy.sh +++ b/autodeploy.sh @@ -70,7 +70,7 @@ first_setup(){ echo -e -n $TICK_INPUT$GREEN"Enter Remote Repository URL: $YELLOW" read remote_repo - echo -e $NOCOLOR$TICK$GREEN"Setting Remote Repository to: $YELLOW$remote_repo " + echo -e $ENDCOLOR$TICK$GREEN"Setting Remote Repository to: $YELLOW$remote_repo " #. ~/.config/autodeploy/autodeploy_config.conf cd $CONFIG_PATH @@ -78,7 +78,7 @@ first_setup(){ git remote add origin $remote_repo > /dev/null 2>&1; git checkout -b main > /dev/null 2>&1; - echo -e $NOCOLOR$TICK$GREEN"First time setup complete, use$BLUE autodeploy -f $GREEN to rerun first time setup"$NOCOLOR + echo -e $ENDCOLOR$TICK$GREEN"First time setup complete, use$BLUE autodeploy -f $GREEN to rerun first time setup"$ENDCOLOR } get_posture(){ @@ -223,8 +223,9 @@ remote_push(){ git add . > /dev/null 2>&1 echo -e $TICK$GREEN"Commiting"$ENDCOLOR git commit -m "Autodeploy from $(hostname) on $(date)" > /dev/null 2>&1 - echo -e $TICK$GREEN"Pushing"$ENDCOLOR + echo -e $TICK$GREEN"Pushing..."$ENDCOLOR git push -u origin main > /dev/null 2>&1 + echo -e $TICK$GREEN"Files have been pushed to $YELLOW$remote_repo"$ENDCOLOR }