diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2020-01-08 04:39:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 04:39:23 -0500 |
commit | 0a744f3e78a771b5159e207d6a314728f2dfdcfc (patch) | |
tree | 4e30bbd86ddcb89dcf344b0f46a2b3abeead2664 | |
parent | 0c986ec9b1b0502f72e9051cab57a81bdb22398a (diff) |
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.
-rw-r--r-- | packaging/installer/functions.sh | 2 | ||||
-rwxr-xr-x | packaging/installer/netdata-uninstaller.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh index 1c1f556dea..d0f188655a 100644 --- a/packaging/installer/functions.sh +++ b/packaging/installer/functions.sh @@ -491,7 +491,7 @@ netdata_pids() { stop_all_netdata() { local p - if [ -n $(netdata_pids) -a -n "$(builtin type -P netdatacli)" ] ; then + if [ -n "$(netdata_pids)" -a -n "$(builtin type -P netdatacli)" ] ; then netdatacli shutdown-agent sleep 20 fi diff --git a/packaging/installer/netdata-uninstaller.sh b/packaging/installer/netdata-uninstaller.sh index 8925c123bf..6cbef70d55 100755 --- a/packaging/installer/netdata-uninstaller.sh +++ b/packaging/installer/netdata-uninstaller.sh @@ -342,7 +342,7 @@ netdata_pids() { stop_all_netdata() { local p - if [ -n $(netdata_pids) -a -n "$(builtin type -P netdatacli)" ] ; then + if [ -n "$(netdata_pids)" -a -n "$(builtin type -P netdatacli)" ] ; then netdatacli shutdown-agent sleep 20 fi |