Improve install.sh -- shopt -s nocasematch is not portable, try it and variant nocaseglob

release
Doug Coleman 2007-09-24 13:22:03 -05:00
parent 709968d712
commit 05dd0ce8f5
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ set +e
# Case insensitive string comparison
shopt -s nocaseglob
shopt -s nocasematch
ensure_program_installed() {
echo -n "Checking for $1..."
@ -44,6 +45,7 @@ uname_s=`uname -s`
case $uname_s in
CYGWIN_NT-5.2-WOW64) OS=windows-nt;;
*CYGWIN_NT*) OS=windows-nt;;
*CYGWIN*) OS=windows-nt;;
*darwin*) OS=macosx;;
*linux*) OS=linux;;
esac