mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +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
|
@ -19,7 +19,7 @@ room=${0##*tinychat_users_}
|
|||
##
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
# Check that curl is installed
|
||||
if hash curl >/dev/null 2>&1; then
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
echo "yes"
|
||||
else
|
||||
echo "no (no curl installed)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue