use the correct exit status for the updater with static updates. (#11520)
Austin S. Hemmelgarn committed
Sep 21, 2021 at 09:57 UTC
0bae55d9b6e67dd1212176b6ce51b3aff4ca3e0c
1 file changed
+1
-1
packaging/installer/netdata-updater.sh
+1
-1
@@ -442,7 +442,7 @@ if [ "${IS_NETDATA_STATIC_BINARY}" == "yes" ]; then
442
echo "${install_type}" > /opt/netdata/etc/netdata/.install-type
443
444
echo >&2 "Switching back to ${PREVDIR}"
445
- cd "${PREVDIR}" || exit 1
445
+ cd "${PREVDIR}"
446
else
447
# the installer updates this script - so we run and exit in a single line
448
update && exit 0