Add Games File
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ADB="${ADB:-/Users/ivananikin/Library/Android/sdk/platform-tools/adb}"
|
||||
SERIAL="${ANDROID_SERIAL:-SOQWR4LFMZUS85ZD}"
|
||||
|
||||
if [[ $# -lt 1 ]]; then
|
||||
echo "Usage: $0 '<ue console command>'" >&2
|
||||
echo "Example: $0 'r.ScreenPercentage 80'" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
CMD="$*"
|
||||
REMOTE_CMD=${CMD//\'/\'\\\'\'}
|
||||
|
||||
"$ADB" -s "$SERIAL" shell \
|
||||
"am broadcast -a android.intent.action.RUN --es cmd '$REMOTE_CMD'" >/dev/null
|
||||
|
||||
echo "sent: $CMD"
|
||||
Reference in New Issue
Block a user