mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Changed from "which" to "command" to make the script a bit more POSIX compliant
This commit is contained in:
parent
fdf68ff325
commit
7b5183c7b9
@ -45,9 +45,9 @@ munin-node.
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ "$1" = "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
if ! which lvs 2>&1 >/dev/null; then
|
if ! command -v lvs >/dev/null; then
|
||||||
echo "no (lvs not found)"
|
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)"
|
echo "no (vgs not found)"
|
||||||
else
|
else
|
||||||
echo "yes"
|
echo "yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user