mirror of
https://github.com/Rikj000/MoniGoMani.git
synced 2022-03-06 00:08:05 +03:00
Catch CTRL-C to exit the program gracefully. Closes #109
This commit is contained in:
@@ -144,6 +144,8 @@ do_exit() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap do_exit SIGINT
|
||||
|
||||
echo ""
|
||||
echo -e "${WHITE}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~${CLOSE}"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user