diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-02-16 07:31:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 07:31:06 -0500 |
commit | 5c7bd2c6488cd19fa4a0eb435221223ea5e7de81 (patch) | |
tree | 68ca846d6778b3f161a4fad6d44c411d649820b3 /system | |
parent | fe5f3b64927e9efb26bdf6d6401e6cd078b738ea (diff) |
Assorted shellcheck cleanup. (#14524)
* Add shellcheck config file to globally disable dead code checks.
These checks have an extremely high false positive rate and even when
they’re correctly flagging code the impact is generally very low.
* Fix assorted shellcheck errors in installer code.
This should make reviewing PRs relating to this code much easier.
* Make shellcheck quit complaining about shellcheckrc formatting.
Diffstat (limited to 'system')
-rwxr-xr-x | system/install-service.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/install-service.sh.in b/system/install-service.sh.in index 59cff0a083..a014e3d08b 100755 --- a/system/install-service.sh.in +++ b/system/install-service.sh.in @@ -265,7 +265,7 @@ install_systemd_service() { warning "Failed to reload systemd unit files." fi - if ! systemctl ${ENABLE} netdata; then + if ! systemctl "${ENABLE}" netdata; then warning "Failed to ${ENABLE} Netdata service." fi fi |