# HG changeset patch # User igerasim # Date 1390231402 -14400 # Node ID 00665950606183f1fad4996b5fbd1bd9668d60d5 # Parent b5f7e1bd14c974cb4fcc2476ae2950847ca23605 8025886: replace [[ and == bash extensions in regtest Reviewed-by: dsamersoff, sla diff -r b5f7e1bd14c9 -r 006659506061 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)