1
0
mirror of https://github.com/google/adb-sync.git synced 2026-01-03 01:48:02 +00:00
Files
adb-sync/adb-channel
2014-09-22 10:01:26 +02:00

15 lines
230 B
Bash
Executable File

#!/bin/sh
set -e
t=`mktemp -d -t adb-channel.XXXXXX`
atexit() {
adb forward --remove localfilesystem:"${t}/sock"
rm -rf "${t}"
}
trap atexit EXIT
adb forward localfilesystem:"${t}/sock" "${1}"
socat stdio unix:"${t}/sock"