8215966: GeneratePropertyPassword.sh uses bash syntax
Summary: Use "case" instead of "if" for the NT check to make sh happy.
Reviewed-by: dholmes
Contributed-by: merkel05@gmail.com
--- a/test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh Fri Dec 28 16:31:11 2018 -0500
+++ b/test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh Fri Dec 28 15:19:14 2018 -0800
@@ -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=`cygpath $SYSTEMROOT`
fi
-fi
+esac
case $OS in
SunOS | Linux | Darwin | AIX )