From 84107b42a823ae925e3404fef30e61385d7bfbd8 Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Thu, 30 Sep 2021 10:20:48 -0700 Subject: [PATCH] Silence git commands, improve logs --- init.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.sh b/init.sh index dd15d90..33cb275 100644 --- a/init.sh +++ b/init.sh @@ -102,12 +102,13 @@ else if [ ! -d "./.git" ]; then # if no git repository already exists git config --global user.email "autodeploy@jafner.tools" git config --global user.name "AutoDeploy" - git init - git add . - git commit -m "Init" + git init > /dev/null 2>&1 + git add . > /dev/null + git commit -m "Init" > /dev/null git remote add upstream $DL_LINK fi - git pull upstream master + echo " === Pulling from $DL_LINK" + git pull upstream master 2> /dev/null echo " === Using latest version on $DL_LINK" echo " === Starting!" httpd-foreground