Quit launcher script + app on ctrl+c fixes #253

This commit is contained in:
akashnimare
2017-08-02 04:24:14 +05:30
parent 6901b5f128
commit f5e15e3c85

View File

@@ -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