@cryptotaxi247 / netdata-1 / commits / 0a744f3e7

Add missing quoting in shell scripts. (#7685)

This fixes an issue introduced by the merge of #7595 which snuck in due to us not using shellcheck on all scripts.

Austin S. Hemmelgarn committed Jan 8, 2020 at 04:39 UTC 0a744f3e78a771b5159e207d6a314728f2dfdcfc
2 files changed +2 -2
packaging/installer/functions.sh
+1 -1
@@ -491,7 +491,7 @@ netdata_pids() {
491 stop_all_netdata() {
492 local p
493
494 - if [ -n $(netdata_pids) -a -n "$(builtin type -P netdatacli)" ] ; then
494 + if [ -n "$(netdata_pids)" -a -n "$(builtin type -P netdatacli)" ] ; then
495 netdatacli shutdown-agent
496 sleep 20
497 fi
packaging/installer/netdata-uninstaller.sh
+1 -1
@@ -342,7 +342,7 @@ netdata_pids() {
342 stop_all_netdata() {
343 local p
344
345 - if [ -n $(netdata_pids) -a -n "$(builtin type -P netdatacli)" ] ; then
345 + if [ -n "$(netdata_pids)" -a -n "$(builtin type -P netdatacli)" ] ; then
346 netdatacli shutdown-agent
347 sleep 20
348 fi