1 #!/bin/bash 2 # Script to report the platform. 3 4 platform='unknown' 5 unamestr=`uname` 6 7 if [[ "$unamestr" == 'Darwin' ]]; then 8 platform='MAC' 9 elif [[ "$unamestr" == *CYGWIN* ]]; then 10 platform='WIN' 11 elif [[ "$unamestr" == "Linux" ]]; then 12 platform='LINUX' 13 fi 14 15 echo ${platform}