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:
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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user