mirror of
https://github.com/google/adb-sync.git
synced 2026-01-04 10:28:01 +00:00
adb-channel: In fact, safely exit also on SIGINT, SIGTERM and SIGALRM,
as all these usually intend a "clean" exit.
This commit is contained in:
@@ -14,7 +14,7 @@ atexit() {
|
|||||||
rm -rf "${t}"
|
rm -rf "${t}"
|
||||||
}
|
}
|
||||||
trap atexit EXIT
|
trap atexit EXIT
|
||||||
trap 'exit 0' HUP
|
trap 'exit 0' HUP INT ALRM TERM
|
||||||
|
|
||||||
[ -z "${activity}" ] || adb shell am start -W ${activity}
|
[ -z "${activity}" ] || adb shell am start -W ${activity}
|
||||||
[ -z "${delay}" ] || sleep "${delay}"
|
[ -z "${delay}" ] || sleep "${delay}"
|
||||||
|
|||||||
Reference in New Issue
Block a user