mirror of
https://github.com/google/adb-sync.git
synced 2026-01-03 01:48:02 +00:00
15 lines
230 B
Bash
Executable File
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"
|