From 7b5183c7b9ddccd4b2c98f50b6c8d1e221f5b35b Mon Sep 17 00:00:00 2001 From: Niall Donegan Date: Tue, 21 Aug 2012 12:07:59 +0100 Subject: [PATCH] Changed from "which" to "command" to make the script a bit more POSIX compliant --- plugins/disk/lvm_ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/disk/lvm_ b/plugins/disk/lvm_ index 35ac5f36..6c2ba72f 100755 --- a/plugins/disk/lvm_ +++ b/plugins/disk/lvm_ @@ -45,9 +45,9 @@ munin-node. EOF if [ "$1" = "autoconf" ]; then - if ! which lvs 2>&1 >/dev/null; then + if ! command -v lvs >/dev/null; then echo "no (lvs not found)" - elif ! which vgs 2>&1 >/dev/null; then + elif ! command -v vgs >/dev/null; then echo "no (vgs not found)" else echo "yes"