11 lines
310 B
Bash
11 lines
310 B
Bash
#!/bin/bash -eu
|
|
adb_state="$($ADB get-state 2>/dev/null || true)"
|
|
|
|
if [[ "$adb_state" = "device" ]]; then
|
|
make deploy
|
|
make logs
|
|
else
|
|
make assemble
|
|
echo "[$0] Cannot deploy - no android device or multiple devices are connected."
|
|
echo "[$0] To deploy, make sure exactly one android device is connected."
|
|
fi
|