diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-09-13 00:25:07 +0200 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2018-09-13 01:25:07 +0300 |
commit | f722c9d567457920c6884ece8f7608ce1e77d270 (patch) | |
tree | 3a3df57c6a18e4e9d0e6cdaf1809f06a2acd9686 /charts.d/ap.chart.sh | |
parent | c592cea960f46a37fabd63bce657eeed55c31840 (diff) |
shellcheck bash scripts starting on A; disable shebang checking in all (#4159)
scripts; set shell without shebang
Diffstat (limited to 'charts.d/ap.chart.sh')
-rw-r--r-- | charts.d/ap.chart.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/charts.d/ap.chart.sh b/charts.d/ap.chart.sh index 9730a80540..ac8785ba90 100644 --- a/charts.d/ap.chart.sh +++ b/charts.d/ap.chart.sh @@ -1,3 +1,4 @@ +# shellcheck shell=bash # no need for shebang - this file is loaded from charts.d.plugin # SPDX-License-Identifier: GPL-3.0+ @@ -16,8 +17,8 @@ declare -A ap_devs=() # _check is called once, to find out if this chart should be enabled or not ap_check() { require_cmd iw || return 1 - - local ev=$(run iw dev | awk ' + local ev + ev=$(run iw dev | awk ' BEGIN { i = ""; ssid = ""; @@ -102,7 +103,7 @@ ap_update() { do echo echo "DEVICE ${dev}" - iw ${dev} station dump + iw "${dev}" station dump done | awk " function zero_data() { dev = \"\"; |