From fc114055be9188752c0a31f3c4339ec26d2d044e Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Wed, 12 Nov 2014 09:24:27 +0800 Subject: Remove bashisms in ndk-gdb Cause of issue b.android.com/73338 with message reads: ../../ndk-gdb: 771: [: armeabi-v7a: unexpected operator Change-Id: I76c7f0c151b5c31166fc6d70d12071efa8500d9a --- ndk-gdb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ndk-gdb') diff --git a/ndk-gdb b/ndk-gdb index e1ce8385a..026fde85b 100755 --- a/ndk-gdb +++ b/ndk-gdb @@ -552,7 +552,7 @@ log "Device CPU ABIs: $CPU_ABIS" APP_ABIS=$APP_ABIS" " adb_var_shell BCFILES run-as $PACKAGE_NAME /system/bin/sh -c "ls lib/*.bc" -if [ $? == 0 ]; then +if [ $? = 0 ]; then COMPAT_ABI="$UNKNOWN_ABI" else for CPU_ABI in $CPU_ABIS; do @@ -768,7 +768,7 @@ fi # If we are debugging UNKNOWN_ABI, download compiled *.so from device. # -if [ "$COMPAT_ABI" == "$UNKNOWN_ABI" ]; then +if [ "$COMPAT_ABI" = "$UNKNOWN_ABI" ]; then for bc in $BCFILES; do log "Pulled $(basename $bc .bc).so from device/emulator." adb pull $DATA_DIR/lib/$(basename $bc .bc).so $PROJECT/obj/local/$UNKNOWN_ABI/ -- cgit v1.2.3