1
0
Fork 0
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:
Lars Kruse 2017-07-01 15:51:37 +02:00
parent bd26b1b42d
commit 189c3953e7
5 changed files with 5 additions and 5 deletions

View file

@ -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)"