8025886: replace [[ and == bash extensions in regtest
Reviewed-by: dsamersoff, sla
--- 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)