mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Changed code to handle the stable flag inside the swtich statement where we parse the command in the main program.
This commit is contained in:
parent
7bdad3e2fc
commit
a2cb534bb6
@ -1993,9 +1993,17 @@ do
|
||||
"-x"|"--xcat-version")
|
||||
shift
|
||||
GO_XCAT_VERSION="$1"
|
||||
if [ "${GO_XCAT_VERSION}" = "stable" ];
|
||||
then
|
||||
GO_XCAT_VERSION="latest"
|
||||
fi
|
||||
;;
|
||||
"--xcat-version="*)
|
||||
GO_XCAT_VERSION="${1##--xcat-version=}"
|
||||
if [ "${GO_XCAT_VERSION}" = "stable" ];
|
||||
then
|
||||
GO_XCAT_VERSION="latest"
|
||||
fi
|
||||
;;
|
||||
"-y"|"--yes")
|
||||
GO_XCAT_YES=("-y")
|
||||
@ -2021,11 +2029,6 @@ do
|
||||
shift
|
||||
done
|
||||
|
||||
if [[ ${GO_XCAT_VERSION} == "stable" ]]
|
||||
then
|
||||
${GO_XCAT_VERSION} = "latest"
|
||||
fi
|
||||
|
||||
case "${GO_XCAT_ACTION}" in
|
||||
"away")
|
||||
GO_XCAT_YES=("-y")
|
||||
|
Loading…
x
Reference in New Issue
Block a user