summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-06-08 14:57:02 +0300
committerGitHub <noreply@github.com>2022-06-08 07:57:02 -0400
commit86b979aaadbe3f2c2358f3dc76d2fcd60b51d5d4 (patch)
tree7e31b4115e46364a169bb8f1256ab8ef3c804266
parenta8b45e636e127607b0c1b70397056e58ef1ae631 (diff)
fix(updater): return 0 on successful update for native packages when running interactively (#13083)
return 0 on success in udpate_binpkg
-rwxr-xr-xpackaging/installer/netdata-updater.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging/installer/netdata-updater.sh b/packaging/installer/netdata-updater.sh
index f33527d9f2..e4cb29a45e 100755
--- a/packaging/installer/netdata-updater.sh
+++ b/packaging/installer/netdata-updater.sh
@@ -781,6 +781,7 @@ update_binpkg() {
# shellcheck disable=SC2086
env ${env} ${pm_cmd} ${upgrade_cmd} ${pkg_install_opts} netdata >&3 2>&3 || fatal "Failed to update Netdata package." U000F
[ -n "${logfile}" ] && rm "${logfile}" && logfile=
+ return 0
}
# Simple function to encapsulate original updater behavior.