From d4f775c2e97cbd012003bc79ad9aa5652e9593e1 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 21 Jul 2023 21:44:08 +0200 Subject: [PATCH] stdout --- app.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.sh b/app.sh index b15922d..eb5c2b8 100644 --- a/app.sh +++ b/app.sh @@ -6,7 +6,7 @@ git config --global user.name "$GIT_USERNAME" echo "clone repository..." - GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet &> /dev/null + GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet > /dev/null cd "$GIT_REPO_PATH" while true ; do @@ -68,11 +68,11 @@ while true ; do sed -i -r '/^# [0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{2}\:[0-9]{2}\:[0-9]{2}\sby\sRouterOS\s[0-9\s\.]+/d' "config_${FQDN}.rsc" git add "config_${FQDN}.rsc" echo "commit config for ${FQDN} ..." - git commit -m "update config_${FQDN}" --quiet &> /dev/null + git commit -m "update config_${FQDN}" --quiet > /dev/null done <<< "$DEVICES" echo "push config(s)..." - GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push &> /dev/null + GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push > /dev/null # Restore the original IFS value IFS=$OLD_IFS