2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

Don't use which to check whether ipmitool is installed

This commit is contained in:
ertaozh
2017-01-18 22:11:10 -05:00
parent 4c72fee543
commit 3040050e1d

View File

@ -104,7 +104,7 @@ function snooze() {
fi
}
if which ipmitool 2>&1 | grep no; then
if ! ipmitool -V 2>/dev/null| grep "version"; then
echo "No ipmitool find, please install it first";
exit 1;
fi