Fix checking of enviornment files. (#12768)
We should check that `${REINSTALL_OPTIONS}` is defined, not that it is defined to a non-empty string.
Austin S. Hemmelgarn committed
Apr 28, 2022 at 07:16 UTC
16827c5b99f16d6620e783ee36fc38a34c6a213c
1 file changed
+1
-1
packaging/installer/netdata-updater.sh
+1
-1
@@ -456,7 +456,7 @@ get_latest_version() {
456
}
457
458
validate_environment_file() {
459
- if [ -n "${NETDATA_PREFIX+SET_BUT_NULL}" ] && [ -n "${REINSTALL_OPTIONS}" ]; then
459
+ if [ -n "${NETDATA_PREFIX+SET_BUT_NULL}" ] && [ -n "${REINSTALL_OPTIONS+SET_BUT_NULL}" ]; then
460
return 0
461
else
462
fatal "Environment file located at ${ENVIRONMENT_FILE} is not valid, unable to update." U0007