2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

fix for bug 4693: rcons -v calls xCAT::Version->Version()

This commit is contained in:
ligc
2015-06-23 03:09:21 -04:00
parent b76e9a425a
commit 8d957f8b11

View File

@@ -20,12 +20,11 @@ if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "-help" ] || [ "$1" = "--help"
echo "rcons [-h|--help|-v|--version]"
exit 0
fi
if [ "$1" = "-v" ]; then
echo "Version 2.9"
exit 0
fi
if [ "$1" = "--version" ]; then
echo "Version 2.9"
if [ "$1" = "-v" -o "$1" = "--version" ]; then
if [ -z "$XCATROOT" ]; then
XCATROOT="/opt/xcat"
fi
perl -e 'use lib "$ENV{XCATROOT}/lib/perl"; use xCAT::Version; print xCAT::Version->Version() . "\n"'
exit 0
fi