From 4e36b3cc14659572664f05804488f7b2416fcb51 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 10 Jun 2008 17:25:36 +0000 Subject: [PATCH] call Utils->Version git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xdsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/xdsh b/xCAT-client/bin/xdsh index 487f52bb0..12180821d 100644 --- a/xCAT-client/bin/xdsh +++ b/xCAT-client/bin/xdsh @@ -11,6 +11,7 @@ use File::Basename; use Getopt::Long; require xCAT::MsgUtils; require xCAT::DSHCLI; +use xCAT::Utils; require xCAT::Client; my $bname = basename($0); @@ -190,7 +191,9 @@ sub parse_args_xdsh } if ($options{'version'}) { - xCAT::MsgUtils->message("I", "Version 2.0\n"); + my $version = xCAT::Utils->Version(); + xCAT::MsgUtils->message("I", $version); + #xCAT::Utils->isLinux(); exit 0; } if ($options{'node-rsh'}) # if set on command line, use it