changeset 9148:a2551e12a9ea

8025886: replace [[ and == bash extensions in regtest Reviewed-by: dsamersoff, sla
author igerasim
date Mon, 20 Jan 2014 19:23:22 +0400
parents 25fbeffbd8d8
children 9dbb0a185e09
files test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh	Tue Jan 21 14:28:13 2014 +0100
+++ b/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh	Mon Jan 20 19:23:22 2014 +0400
@@ -34,12 +34,13 @@
 OS=`uname -s`
 UMASK=`umask`
 
-if [[ $OS == CYGWIN_NT* ]] ; then
+case $OS in
+CYGWIN_NT*)
     OS="Windows_NT"
     if [ -z "$SystemRoot" ] ;  then
-	SystemRoot=$SYSTEMROOT
+        SystemRoot=$SYSTEMROOT
     fi
-fi
+esac
 
 case $OS in
 SunOS | Linux | Darwin)