mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
chore: code style
This commit is contained in:
parent
fb80912066
commit
df08e47bdc
1 changed files with 8 additions and 8 deletions
|
@ -158,18 +158,18 @@ function is_config {
|
||||||
|
|
||||||
# Check if element exists in array
|
# Check if element exists in array
|
||||||
function in_array {
|
function in_array {
|
||||||
local e match
|
local e match
|
||||||
match="$1"
|
match="$1"
|
||||||
shift
|
shift
|
||||||
for e; do [[ "$e" == "$match" ]] && return 0; done
|
for e; do [[ "$e" == "$match" ]] && return 0; done
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Join array elements by separator
|
# Join array elements by separator
|
||||||
function join {
|
function join {
|
||||||
local IFS="$1"
|
local IFS="$1"
|
||||||
shift
|
shift
|
||||||
echo "$*"
|
echo "$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if graph was requested
|
# Check if graph was requested
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue