summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-01-08 04:39:23 -0500
committerGitHub <noreply@github.com>2020-01-08 04:39:23 -0500
commit0a744f3e78a771b5159e207d6a314728f2dfdcfc (patch)
tree4e30bbd86ddcb89dcf344b0f46a2b3abeead2664 /packaging
parent0c986ec9b1b0502f72e9051cab57a81bdb22398a (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.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/installer/functions.sh2
-rwxr-xr-xpackaging/installer/netdata-uninstaller.sh2
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