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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user