mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix multiple shellcheck issues
This commit is contained in:
parent
5b1099fb83
commit
7fed3b9765
18 changed files with 59 additions and 50 deletions
|
@ -71,7 +71,7 @@ do_value() {
|
|||
FIELD="$1"
|
||||
EVENT_LABEL="$2"
|
||||
|
||||
EVENT_COUNT="$("$logtail_bin" -t "$muninupdate" 2> /dev/null | grep -c "^[0-9/: ]\{19\} \[${EVENT_LABEL}\]")"
|
||||
EVENT_COUNT="$("$logtail_bin" -t "$muninupdate" 2> /dev/null | grep -c '^[0-9/: ]\{19\} \['"${EVENT_LABEL}"'\]')"
|
||||
if echo "$EVENT_COUNT" | grep -q "[^0-9]"; then
|
||||
echo "Cannot determine event count" 1>&2
|
||||
exit 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue