Skip to content

Commit ce1c0cc

Browse files
tarp SIG for clean exit
1 parent d787a5f commit ce1c0cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

udroid/src/udroid.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ msg_extract() {
730730
echo
731731
}
732732
####################
733+
trap 'echo "exiting gracefully..."; exit 1' HUP INT TERM SIGINT SIGTERM
734+
####################
733735

734736
if [ $# -eq 0 ]; then
735737
echo "usage: $0 [install|login|remove]"

0 commit comments

Comments
 (0)