mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-14 18:30:23 +00:00
[go-xcat] Handle command argument more flexible
This commit is contained in:
@ -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=}"
|
||||
;;
|
||||
|
Reference in New Issue
Block a user