chore: improve scripting
This commit is contained in:
parent
4810cade9f
commit
eac1c1d5bd
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