Add dependency check
This commit is contained in:
parent
2f86db5cb7
commit
42226c7817
|
@ -1,5 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
for DEP in hxselect lvs tempfile
|
||||
do
|
||||
if [ -z "$(which $DEP)" ]
|
||||
then
|
||||
echo "kvmstats.sh: $DEP not found in \$PATH" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
TMPFILE=$(tempfile)
|
||||
|
||||
for VM in $(virsh list --all --name)
|
||||
|
|
Loading…
Reference in a new issue