diff --git a/functions/helper.sh b/functions/helper.sh index 903cc3b..ba69c43 100644 --- a/functions/helper.sh +++ b/functions/helper.sh @@ -20,6 +20,7 @@ function cecho() { } function check_adb_connection() { + adb kill-server &> /dev/null || true cecho "Please enable developer options on your device, connect it to your computer and set it to file transfer mode. Then, press Enter to continue." wait_for_enter adb devices > /dev/null