mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +00:00
Don't use which to check whether ipmitool is installed
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user