mirror of
https://github.com/google/adb-sync.git
synced 2026-01-03 01:48:02 +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}"
|
||||
}
|
||||
trap atexit EXIT
|
||||
trap 'exit 0' HUP
|
||||
trap 'exit 0' HUP INT ALRM TERM
|
||||
|
||||
[ -z "${activity}" ] || adb shell am start -W ${activity}
|
||||
[ -z "${delay}" ] || sleep "${delay}"
|
||||
|
||||
Reference in New Issue
Block a user