chore: improve scripting
This commit is contained in:
parent
d7b4543980
commit
9b31681b0e
1 changed files with 5 additions and 0 deletions
|
|
@ -1,2 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
if [ -z "$DEVICE" ]; then
|
||||||
|
echo "Error: DEVICE environment variable is not set."
|
||||||
|
echo "Usage: DEVICE=emulator-5554 ./screenshot-android.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
exec adb -s $DEVICE exec-out screencap -p > screenshot-emulator-$(date +%s).png
|
exec adb -s $DEVICE exec-out screencap -p > screenshot-emulator-$(date +%s).png
|
||||||
Loading…
Add table
Reference in a new issue