|
|
@ -5,7 +5,7 @@ set -e |
|
|
|
PHONE_ADB_SERIAL_NUMBER=${ADB_DEVICE} # The adb serial number can be found by running `adb devices`. |
|
|
|
PHONE_ADB_SERIAL_NUMBER=${ADB_DEVICE} # The adb serial number can be found by running `adb devices`. |
|
|
|
if [$PHONE_ADB_SERIAL_NUMBER = '']; then |
|
|
|
if [$PHONE_ADB_SERIAL_NUMBER = '']; then |
|
|
|
PHONE_ADB_SERIAL_NUMBER=$(echo $(adb devices) | sed -rn 's/(^|(.* ))([^ ]*) device(( .*)|$)/\3/; T; p; q') |
|
|
|
PHONE_ADB_SERIAL_NUMBER=$(echo $(adb devices) | sed -rn 's/(^|(.* ))([^ ]*) device(( .*)|$)/\3/; T; p; q') |
|
|
|
if [[ -n $PHONE_ADB_SERIAL_NUMBER ]] |
|
|
|
if [[ -n $PHONE_ADB_SERIAL_NUMBER ]]; then |
|
|
|
print_message "ERROR: no suitable phone connected" |
|
|
|
print_message "ERROR: no suitable phone connected" |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|