diff --git a/build_python.sh b/build_python.sh index 1754f15..4298e36 100755 --- a/build_python.sh +++ b/build_python.sh @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/bash . ./environment.sh @@ -7,7 +7,7 @@ # http://latenitesoft.blogspot.com/2008/10/iphone-programming-tips-building-unix.html # download python and patch if they aren't there -if [[ ! -a $CACHEROOT/Python-$PYTHON_VERSION.tar.bz2 ]]; then +if [ ! -a $CACHEROOT/Python-$PYTHON_VERSION.tar.bz2 ]; then curl http://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.bz2 > $CACHEROOT/Python-$PYTHON_VERSION.tar.bz2 fi diff --git a/environment.sh b/environment.sh index 8c997ad..ec5872c 100755 --- a/environment.sh +++ b/environment.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -x + try () { "$@" || exit -1 }