diff options
-rwxr-xr-x | build/linux/python_arch.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/build/linux/python_arch.sh b/build/linux/python_arch.sh index 72d785d14..d874051 100755 --- a/build/linux/python_arch.sh +++ b/build/linux/python_arch.sh @@ -10,12 +10,16 @@ # python_arch.sh /path/to/sysroot/usr/lib/libpython2.4.so.1.0 # -set -e - python=$(readlink -f "$1") +if [ -z "$python" ]; then + echo unknown + exit 0; +fi file_out=$(file "$python") - -set +e +if [ -z "$file_out" ]; then + echo unknown + exit 0; +fi echo $file_out | grep -qs "ARM" if [ $? -eq 0 ]; then |