8215966: GeneratePropertyPassword.sh uses bash syntax
authorphh
Fri, 28 Dec 2018 15:19:14 -0800
changeset 53106 6c3407eee455
parent 53105 6ac04cfbefdf
child 53107 cfceb4df2499
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
test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
--- 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 )