mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 10:40:24 +00:00
Merge pull request #2424 from zet809/fix_issue_2422
Don't use "which" to check whether ipmitool is installed in genesis
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