mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
shell: use 'command -v' instead of 'hash' (for non-bash)
see https://stackoverflow.com/a/677212
This commit is contained in:
parent
bd26b1b42d
commit
189c3953e7
5 changed files with 5 additions and 5 deletions
|
@ -89,7 +89,7 @@ fi
|
|||
# real work - i.e. display the data. Almost always this will be
|
||||
# "value" subfield for every data field.
|
||||
|
||||
if hash rabbitmqctl >/dev/null 2>&1; then
|
||||
if command -v rabbitmqctl >/dev/null 2>&1; then
|
||||
connections=$(HOME=/tmp rabbitmqctl list_connections state | grep -c running)
|
||||
else
|
||||
echo "$0: Could not run rabbitmqctl" >&2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue