@cryptotaxi247 / netdata-1 / commits / 4b5d02a55

Prevent netdata-updater.sh from sending cron report for git stash entries (#4952)

Chris Akritidis committed Dec 12, 2018 at 09:58 UTC 4b5d02a559d719fce0a61d7d221c2c3be76e891c
1 file changed +5 -1
installer/netdata-updater.sh
+5 -1
@@ -93,7 +93,11 @@ update() {
93 failed "CANNOT GET LAST COMMIT ID (use -f for force re-install)"
94 fi
95
96 - info "Stashing local git changes. You can use $(git stash pop) to reapply your changes."
96 + popmsg="$(git stash pop 2>&1)"
97 + if [ $? -eq 0 ] ; then
98 + info "Stashing local git changes. You can use ${popmsg} to reapply your changes."
99 + fi
100 +
101 git stash 2>&3 >&3
102 git fetch --all 2>&3 >&3
103 git fetch --tags 2>&3 >&3