From 84592b9e217db64b29032a7dde8c15eb5cbd9846 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 21 Jul 2023 21:29:27 +0200 Subject: [PATCH] &> /dev/null --- app.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.sh b/app.sh index f1ccf80..cb16c0b 100644 --- a/app.sh +++ b/app.sh @@ -61,7 +61,7 @@ while true ; do exit 2 fi echo "export $FQDN config" - ssh -n -o StrictHostKeyChecking=no -i "$SSH_KEY_PATH" "${USERNAME}@${FQDN}" "/export show-sensitive" > "config_${FQDN}.rsc" 2> /dev/null + ssh -n -o StrictHostKeyChecking=no -i "$SSH_KEY_PATH" "${USERNAME}@${FQDN}" "/export show-sensitive" > "config_${FQDN}.rsc" &> /dev/null # entferne Datumszeile echo sed pwd @@ -74,12 +74,13 @@ while true ; do git commit -m "update config_${FQDN}" --quiet done <<< "$DEVICES" - GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push + GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push &> /dev/null # Restore the original IFS value IFS=$OLD_IFS # loop + echo "sleep..." sleep "$INTERVAL" done