Skip to content

Commit 141880c

Browse files
committed
string comparison not -eq
1 parent 2a22a33 commit 141880c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osx_utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ function mac_arch_for_pyosx_version {
144144
# MACPYTHON_DEFAULT_OSX
145145
py_osx_ver=${1:-$MACPYTHON_DEFAULT_OSX}
146146
check_var $py_osx_ver
147-
if [ $py_osx_ver -eq "10.6" ]; then
147+
if [[ "$py_osx_ver" == "10.6" ]]; then
148148
echo "intel"
149-
elif [ $py_osx_ver -eq "10.9" ]; then
149+
elif [[ "$py_osx_ver" == "10.9" ]]; then
150150
echo "x86_x64"
151151
else
152152
echo "Invalid python osx version: ${py_osx_ver}, supported values: 10.6 and 10.9"

0 commit comments

Comments
 (0)