From 02f7de3c76c090516e38f84bbb8f65566e299ba5 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Tue, 29 Jan 2019 13:39:41 +0800 Subject: [PATCH] [go-xcat] Makw `go-xcat away' do the uninstallation without prompting --- xCAT-server/share/xcat/tools/go-xcat | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index d2f8e00a2..a2e9b63bd 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -1976,13 +1976,9 @@ do exit_if_bad "$?" "Try \`$0 --help' for more information" GO_XCAT_ACTION="$1" case "$1 $2" in - "completely uninstall") + "completely uninstall"|"smoke test") shift - GO_XCAT_ACTION="away" - ;; - "smoke test") - shift - GO_XCAT_ACTION="smoke test" + GO_XCAT_ACTION="$1 $2" ;; esac ;; @@ -1991,7 +1987,13 @@ do done case "${GO_XCAT_ACTION}" in -"away"|"check"|"install"|"uninstall"|"update") +"away") + GO_XCAT_YES=("-y") + ;; +"completely uninstall") + GO_XCAT_ACTION="away" + ;; +"check"|"install"|"uninstall"|"update") ;; "smoke test") smoke_testing