]> Creatis software - creaToolsTools.git/commitdiff
auto close window when necessary
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 28 Jan 2011 14:34:23 +0000 (14:34 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 28 Jan 2011 14:34:23 +0000 (14:34 +0000)
Linux/menu.sh

index 2e1d51c574b64b99ccf7ca0aa55bf632d8abc838..c0bb8273c95a2f152ca06daf8017283521f372f9 100644 (file)
@@ -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)