use uname -s to invoid warning on mac os

This commit is contained in:
minggo 2011-08-05 10:07:14 +08:00
parent 0551e86d80
commit 679dda8ec3
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ fi
# the bash file should not be called by cygwin
UNIX_NAME=`uname -s`
if [ $UNIX_NAME = "Cygwin" ];then
KERNEL_NAME=`uname -s | grep "CYGWIN*"`
if [ $KERNEL_NAME"hi" != "hi" ]; then
echo "Error!!!"
echo "Don't run in cygwin. You should run corresponding bat."
exit