# HG changeset patch # User phh # Date 1546039154 28800 # Node ID 6c3407eee455bf18d8d05a646431873e0ff4be8c # Parent 6ac04cfbefdf3153d716da43694704ee05d0cc53 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 diff -r 6ac04cfbefdf -r 6c3407eee455 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 )