Commit 141880c8 authored by Rob Buckley's avatar Rob Buckley
Browse files

string comparison not -eq

parent 2a22a33b
...@@ -144,9 +144,9 @@ function mac_arch_for_pyosx_version { ...@@ -144,9 +144,9 @@ function mac_arch_for_pyosx_version {
# MACPYTHON_DEFAULT_OSX # MACPYTHON_DEFAULT_OSX
py_osx_ver=${1:-$MACPYTHON_DEFAULT_OSX} py_osx_ver=${1:-$MACPYTHON_DEFAULT_OSX}
check_var $py_osx_ver check_var $py_osx_ver
if [ $py_osx_ver -eq "10.6" ]; then if [[ "$py_osx_ver" == "10.6" ]]; then
echo "intel" echo "intel"
elif [ $py_osx_ver -eq "10.9" ]; then elif [[ "$py_osx_ver" == "10.9" ]]; then
echo "x86_x64" echo "x86_x64"
else else
echo "Invalid python osx version: ${py_osx_ver}, supported values: 10.6 and 10.9" echo "Invalid python osx version: ${py_osx_ver}, supported values: 10.6 and 10.9"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment