8025886: replace [[ and == bash extensions in regtest
authorigerasim
Mon, 20 Jan 2014 19:23:22 +0400
changeset 22355 006659506061
parent 22354 b5f7e1bd14c9
child 22357 bbc7015fe560
8025886: replace [[ and == bash extensions in regtest Reviewed-by: dsamersoff, sla
jdk/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
--- a/jdk/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh	Tue Jan 21 14:28:13 2014 +0100
+++ b/jdk/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)