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