Created
June 13, 2020 10:52
-
-
Save chankruze/b4daaa7d37a27744839e8f4f6a4bb554 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
adb connect $(ip route show | grep "default via" | cut -d" " -f3) | |
else | |
adb connect $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment