diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-09-13 10:24:05 +0200 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2018-09-13 11:24:05 +0300 |
commit | fef1d0c06ed0ecc9da2f27655f885027315fc91e (patch) | |
tree | 83efe3d412c5ac76901a5879f6b8cd735924ca17 /charts.d/exim.chart.sh | |
parent | 16b2a57ad0ab7ac40a7e1ecdebcc02c881086366 (diff) |
more linting of bash modules (#4183)
Diffstat (limited to 'charts.d/exim.chart.sh')
-rw-r--r-- | charts.d/exim.chart.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/charts.d/exim.chart.sh b/charts.d/exim.chart.sh index 996934630b..eb36f329a6 100644 --- a/charts.d/exim.chart.sh +++ b/charts.d/exim.chart.sh @@ -23,7 +23,7 @@ exim_check() { exim_command="${EXIM_CMD}" fi - if [ $(${exim_command} -bpc 2>&1 | grep -c denied) -ne 0 ] + if [ "$(${exim_command} -bpc 2>&1 | grep -c denied)" -ne 0 ] then error "permission denied - please set 'queue_list_requires_admin = false' in your exim options file" return 1 @@ -42,7 +42,7 @@ EOF exim_update() { echo "BEGIN exim_local.qemails $1" - echo "SET emails = " $(run ${exim_command} -bpc) + echo "SET emails = $(run "${exim_command}" -bpc)" echo "END" return 0 } |