Browse Source

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

Chris Akritidis 6 years ago
parent
commit
4b5d02a559
1 changed files with 5 additions and 1 deletions
  1. 5 1
      installer/netdata-updater.sh

+ 5 - 1
installer/netdata-updater.sh

@@ -93,7 +93,11 @@ update() {
 			failed "CANNOT GET LAST COMMIT ID (use -f for force re-install)"
 		fi
 
-		info "Stashing local git changes. You can use $(git stash pop) to reapply your changes."
+		popmsg="$(git stash pop 2>&1)"
+		if [ $? -eq 0 ] ; then 
+			info "Stashing local git changes. You can use ${popmsg} to reapply your changes."
+		fi
+
 		git stash 2>&3 >&3
 		git fetch --all 2>&3 >&3
 		git fetch --tags 2>&3 >&3