From a74af859ecee48e0010c7b38f9de1ff1f1c2f9e7 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Mon, 4 Jul 2016 14:53:12 +0800 Subject: [PATCH] [go-xcat] Add version number --- xCAT-server/share/xcat/tools/go-xcat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index 3a8301e75..8c43440bf 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -2,6 +2,8 @@ # # go-xcat - Install xCAT automatically. # +# Version 1.0.0 +# # Copyright (C) 2016 International Business Machines # Eclipse Public License, Version 1.0 (EPL-1.0) # @@ -17,6 +19,14 @@ function usage() local script="${0##*/}" while read -r ; do echo "${REPLY}" ; done <<-EOF + ${script} version $( + for i in {0..9} + do + read -r + [[ ${REPLY} =~ \#\ +[Vv]ersion ]] && echo "${REPLY##* }" + done <"$0" + ) + Usage: ${script} [OPTION]... [ACTION] Install xCAT automatically