8215966: GeneratePropertyPassword.sh uses bash syntax

Use "case" instead of "if" for the NT check to make sh happy.

Reviewed-by: dholmes
This commit is contained in:
Sergey Ustimenko 2018-12-28 15:19:14 -08:00 committed by Paul Hohensee
parent 6c4ec86cea
commit 9d3cfddfb6

@ -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 )