summaryrefslogtreecommitdiff
path: root/.local/bin/shorts/adbs
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/shorts/adbs')
-rwxr-xr-x.local/bin/shorts/adbs6
1 files changed, 5 insertions, 1 deletions
diff --git a/.local/bin/shorts/adbs b/.local/bin/shorts/adbs
index bca7733..20bba2b 100755
--- a/.local/bin/shorts/adbs
+++ b/.local/bin/shorts/adbs
@@ -1,3 +1,7 @@
#!/bin/sh
-adb -s "${ADB_DEVICE}" shell "$@"
+if [ -n "$ADB_DEVICE" ]; then
+ adb -s "${ADB_DEVICE}" shell "$@"
+else
+ adb shell "$@"
+fi