OpenJDK / jdk / jdk
changeset 53106:6c3407eee455
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
author | phh |
---|---|
date | Fri, 28 Dec 2018 15:19:14 -0800 |
parents | 6ac04cfbefdf |
children | cfceb4df2499 |
files | test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 )