From d9fd6c86e035aece72da23083b86ac33c971ef4b Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Fri, 28 Jan 2011 14:34:23 +0000 Subject: [PATCH] auto close window when necessary --- Linux/menu.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Linux/menu.sh b/Linux/menu.sh index 2e1d51c..c0bb827 100644 --- a/Linux/menu.sh +++ b/Linux/menu.sh @@ -95,7 +95,7 @@ do "$OperatingSystem" != "MacOS" ]] do - echo "Operating System : Fedora/Ubuntu/MacOS (default :Fedora!)" + echo "Operating System : Fedora/Ubuntu/MacOS (default : Fedora)" read OperatingSystem if [ "$OperatingSystem" = "" ] then @@ -254,7 +254,7 @@ do echo " Where do you want to get source files from : $sourcesFrom" if [ $sourcesFrom = CVS ] then - echo " CVS User Name : $cvsUserName" + echo " CVS User Name : $cvsUserName" fi echo " Login User Name : $loginUserName" echo " Login Group Name : $loginGroupName" @@ -365,15 +365,16 @@ do echo OK echo "To go on, run again 'sh menu.sh' as '$loginUserName', in a new window" echo "---------------------------------------------------------------------" - exit 0 else echo "----------------------------------------------------------------------" echo OK echo "To go on, run again 'sh menu.sh' in a new window" echo "---------------------------------------------------------------------" - exit 0 - fi - + fi + echo + echo "==> Hit any key to exit close current window" + read a + kill $PPID ;; 2) -- 2.45.1