mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Merge pull request #169 from ndonegan/master
Changed from "which" to "command" to make the script a bit more POSIX compliant
This commit is contained in:
commit
9fae2c90a9
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue