diff --git a/device_connect.sh b/device_connect.sh index 49e0c55..e914623 100755 --- a/device_connect.sh +++ b/device_connect.sh @@ -67,14 +67,13 @@ if [ ! -z "$ANDROID_DEVICE" ]; then sleep ${ADB_POLLING_SEC} index+=1 done -fi -if [[ $isConnected -eq 0 ]]; then - echo "Device ${ANDROID_DEVICE} is not connected!" - exit 1 + if [[ $isConnected -eq 0 ]]; then + echo "Device ${ANDROID_DEVICE} is not connected!" + exit 1 + fi fi - isAvailable=0 declare -i index=0 # as default ADB_POLLING_SEC is 5s then we wait for authorizing ~50 sec only