diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-04-28 07:16:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 07:16:49 -0400 |
commit | 16827c5b99f16d6620e783ee36fc38a34c6a213c (patch) | |
tree | 680d8b8452659b177e9eb6e2669c30049f7ced78 /packaging | |
parent | 59efd533768ccd1713ab2ddcad5ff1d1d724fd41 (diff) |
Fix checking of enviornment files. (#12768)
We should check that `${REINSTALL_OPTIONS}` is defined, not that it is
defined to a non-empty string.
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/installer/netdata-updater.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/installer/netdata-updater.sh b/packaging/installer/netdata-updater.sh index 459369a599..f5683c7447 100755 --- a/packaging/installer/netdata-updater.sh +++ b/packaging/installer/netdata-updater.sh @@ -456,7 +456,7 @@ get_latest_version() { } validate_environment_file() { - if [ -n "${NETDATA_PREFIX+SET_BUT_NULL}" ] && [ -n "${REINSTALL_OPTIONS}" ]; then + if [ -n "${NETDATA_PREFIX+SET_BUT_NULL}" ] && [ -n "${REINSTALL_OPTIONS+SET_BUT_NULL}" ]; then return 0 else fatal "Environment file located at ${ENVIRONMENT_FILE} is not valid, unable to update." U0007 |