diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2019-02-12 14:12:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 14:12:31 +0100 |
commit | 06a367d8762915f3cd5e06971c46e4d1535d3ae9 (patch) | |
tree | 2d0d89a2f3d1c1fc259c6530c26363600ede6d26 /health | |
parent | 1509e497018fef3e3c4bc8e1afdbd33eada0fcdf (diff) |
automatic shellchecking on .sh.in scripts (#5165)
* CI linting .sh.in files
* make linter passing
Diffstat (limited to 'health')
-rwxr-xr-x | health/notifications/alarm-notify.sh.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/health/notifications/alarm-notify.sh.in b/health/notifications/alarm-notify.sh.in index 04c0d2e06e..6d57890991 100755 --- a/health/notifications/alarm-notify.sh.in +++ b/health/notifications/alarm-notify.sh.in @@ -111,7 +111,7 @@ debug() { docurl() { if [ -z "${curl}" ]; then - error '${curl} is unset.' + error "${curl} is unset." return 1 fi @@ -216,7 +216,8 @@ else units="${17}" # the units of the value info="${18}" # a short description of the alarm value_string="${19}" # friendly value (with units) - # shellcheck disable=SC2034 variable is unused, but https://github.com/netdata/netdata/pull/5164#discussion_r255572947 + # shellcheck disable=SC2034 + # variable is unused, but https://github.com/netdata/netdata/pull/5164#discussion_r255572947 old_value_string="${20}" # friendly old value (with units), previously named "old_value_string" calc_expression="${21}" # contains the expression that was evaluated to trigger the alarm calc_param_values="${22}" # the values of the parameters in the expression, at the time of the evaluation |