From 0643166295fd9fd76c5f3dbaa8e58a5a04d7feb8 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 18 Sep 2016 22:27:24 +0800 Subject: [PATCH] [go-xcat] Handle command argument more flexible --- xCAT-server/share/xcat/tools/go-xcat | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index 01419fa6c..6a642320d 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -1379,12 +1379,24 @@ do verbose_usage exit 0 ;; + "--xcat-core") + shift + GO_XCAT_CORE_URL="$1" + ;; "--xcat-core="*) GO_XCAT_CORE_URL="${1##--xcat-core=}" ;; + "--xcat-dep") + shift + GO_XCAT_DEP_URL="$1" + ;; "--xcat-dep="*) GO_XCAT_DEP_URL="${1##--xcat-dep=}" ;; + "--xcat-version") + shift + GO_XCAT_VERSION="$1" + ;; "--xcat-version="*) GO_XCAT_VERSION="${1##--xcat-version=}" ;;