2
0
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:
Victor Hu
2017-01-19 10:12:44 -05:00
committed by GitHub

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