@cryptotaxi247 / netdata-1 / commits / 0d0e5ab90

Fixing stderr output when testing tmpdir (#12298)

This fixes https://github.com/netdata/netdata/issues/12286

Daniel Weaver committed Mar 3, 2022 at 07:15 UTC 0d0e5ab9011b83a9e0ba5c81706c9769e367b9eb
1 file changed +1 -1
packaging/installer/netdata-updater.sh
+1 -1
@@ -263,7 +263,7 @@ _cannot_use_tmpdir() {
263
264 if printf '#!/bin/sh\necho SUCCESS\n' > "${testfile}" ; then
265 if chmod +x "${testfile}" ; then
266 - if [ "$("${testfile}")" = "SUCCESS" ] ; then
266 + if [ "$("${testfile}" 2>/dev/null)" = "SUCCESS" ] ; then
267 ret=1
268 fi
269 fi