Index: build/linux/python_arch.sh |
=================================================================== |
--- build/linux/python_arch.sh (revision 40631) |
+++ build/linux/python_arch.sh (working copy) |
@@ -10,13 +10,17 @@ |
# 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") |
+if [ -z "$file_out" ]; then |
+ echo unknown |
+ exit 0; |
+fi |
-set +e |
- |
echo $file_out | grep -qs "ARM" |
if [ $? -eq 0 ]; then |
echo arm |