This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "`adb get-state 2>&1 | grep device`" == "" ]; then #get-state either give "unknown" or "device" in its output | |
echo -e " ${bblue}No Device Connected in adb Mode!" #and in 18.04, inplace of "unknown" it gives "Error: No Devices found" | |
echo -e " Connect it again or Enable USB Debugging...${nc}" | |
echo | |
echo -e " ${bblue}Press Enter to Continue${nc}" | |
read | |
start | |
fi |