diff --git a/plugins/chat/tinychat_users_ b/plugins/chat/tinychat_users_ index 39a40679..d366b372 100755 --- a/plugins/chat/tinychat_users_ +++ b/plugins/chat/tinychat_users_ @@ -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)" diff --git a/plugins/mail/nullmailer_queue b/plugins/mail/nullmailer_queue index 47a0f1e2..65806b88 100755 --- a/plugins/mail/nullmailer_queue +++ b/plugins/mail/nullmailer_queue @@ -55,7 +55,7 @@ errordir=${errordir:-/var/spool/nullmailer/failed} case $1 in autoconf) - if hash nullmailer-queue >/dev/null 2>/dev/null; then + if command -v nullmailer-queue >/dev/null 2>/dev/null; then [ -r "$queuedir" ] && echo yes || echo "no (queue dir not readable)" else echo "no (nullmailer not installed)" diff --git a/plugins/network/multibandwidth b/plugins/network/multibandwidth index 4f4f7298..a7edf4c8 100644 --- a/plugins/network/multibandwidth +++ b/plugins/network/multibandwidth @@ -78,7 +78,7 @@ case $1 in done exit 0;; autoconf) - if hash bing 2>/dev/null; then + if command -v bing >/dev/null 2>&1; then echo 'yes' exit 0; else diff --git a/plugins/rabbitmq/rabbitmq_connections b/plugins/rabbitmq/rabbitmq_connections index e0fc2a89..f7adbc5a 100755 --- a/plugins/rabbitmq/rabbitmq_connections +++ b/plugins/rabbitmq/rabbitmq_connections @@ -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 diff --git a/plugins/reddit_karma/reddit_karma_ b/plugins/reddit_karma/reddit_karma_ index 6d1d146e..689a283c 100755 --- a/plugins/reddit_karma/reddit_karma_ +++ b/plugins/reddit_karma/reddit_karma_ @@ -32,7 +32,7 @@ reddit_user=${0##*reddit_karma_} ## 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)"