mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-04-09 01:27:48 +02:00
adb-permissions.bash: exit if adb not found (resolves TODO)
This commit is contained in:
parent
34cfb4b3bb
commit
93dac934fe
@ -8,7 +8,10 @@
|
||||
|
||||
set -x
|
||||
|
||||
# TODO: if adb is not installed or in $PATH, exit?
|
||||
if ! hash adb 2> /dev/null; then
|
||||
echo "Error: adb not found in $PATH" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Remember,
|
||||
echo "In case of trouble check Android System Settings, Connected devices, USB mode. It should be data transfer for adb USB debugging to take effect."
|
||||
|
Loading…
x
Reference in New Issue
Block a user