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
|
@ -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)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue