mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
Quit launcher script + app on ctrl+c fixes #253
This commit is contained in:
@@ -103,7 +103,20 @@ cleanUp()
|
||||
|
||||
# }}}
|
||||
|
||||
# this function is called when user hits Ctrl-C
|
||||
catchControl_c () {
|
||||
echo -en "\n## Ctrl-C caught; Quitting \n"
|
||||
# exit shell script
|
||||
exit $?;
|
||||
}
|
||||
|
||||
|
||||
|
||||
envSetup $*
|
||||
gitCheckout
|
||||
npmInstallStart
|
||||
cleanUp
|
||||
|
||||
# initialise trap to call catchControl_c function and trap keyboard interrupt (control-c)
|
||||
trap catchControl_c SIGINT
|
||||
sleep 1000
|
Reference in New Issue
Block a user