Avoid errant "build failed" message on OS X < 10.7. Fixes #13.

This commit is contained in:
Sam Stephenson 2011-09-06 10:13:59 -05:00
parent 9eb714a2ae
commit 7b4ee4cfe1

View file

@ -116,7 +116,7 @@ after_install_package() {
use_gcc42_on_lion() {
if [ "$(uname -s)" = "Darwin" ]; then
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7)" -eq 1 ]; then
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7 || true)" -eq 1 ]; then
export CC=/usr/bin/gcc-4.2
fi
fi