From 4339b3b54f862b1e073adc8c3f28d04a67ccf8f2 Mon Sep 17 00:00:00 2001 From: Ivan Gerasimov Date: Mon, 20 Jan 2014 19:23:22 +0400 Subject: [PATCH] 8025886: replace [[ and == bash extensions in regtest Reviewed-by: dsamersoff, sla --- .../jmxremote/bootstrap/GeneratePropertyPassword.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jdk/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh b/jdk/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh index 570631dc11e..4d1d6e8f93d 100644 --- a/jdk/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh +++ b/jdk/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh @@ -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)