fix(updater): don't produce any output if static update completed successfully (#14058)
Fixes https://github.com/netdata/netdata/issues/12824
Ilya Mashchenko committed
Nov 28, 2022 at 21:37 UTC
2033fb1117f20333d5cf0566381b0e4b7aadf600
1 file changed
+1
-1
packaging/installer/netdata-updater.sh
+1
-1
@@ -663,7 +663,7 @@ update_static() {
663
664
# Do not pass any options other than the accept, for now
665
# shellcheck disable=SC2086
666
- if sh "${ndtmpdir}/netdata-${sysarch}-latest.gz.run" --accept -- ${REINSTALL_OPTIONS}; then
666
+ if sh "${ndtmpdir}/netdata-${sysarch}-latest.gz.run" --accept -- ${REINSTALL_OPTIONS} >&3 2>&3; then
667
rm -r "${ndtmpdir}"
668
else
669
info "NOTE: did not remove: ${ndtmpdir}"