mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-24 16:43:38 +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 $*
|
envSetup $*
|
||||||
gitCheckout
|
gitCheckout
|
||||||
npmInstallStart
|
npmInstallStart
|
||||||
cleanUp
|
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