From 9d3cfddfb6f149b3b536f6dcd07fb85ac8a91bb2 Mon Sep 17 00:00:00 2001 From: Sergey Ustimenko Date: Fri, 28 Dec 2018 15:19:14 -0800 Subject: [PATCH] 8215966: GeneratePropertyPassword.sh uses bash syntax Use "case" instead of "if" for the NT check to make sh happy. Reviewed-by: dholmes --- .../jmxremote/bootstrap/GeneratePropertyPassword.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh b/test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh index accd9ddf42e..17f139ca059 100644 --- a/test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh +++ b/test/jdk/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=`cygpath $SYSTEMROOT` fi -fi +esac case $OS in SunOS | Linux | Darwin | AIX )