fix : kill all background processes when exiting (#165)
This commit is contained in:
parent
d0ffb6f4cb
commit
aa7ebc1528
2
quickget
2
quickget
@ -23,6 +23,8 @@
|
|||||||
# }
|
# }
|
||||||
# 6. Add new OS to the argument parser at the bottom of the script
|
# 6. Add new OS to the argument parser at the bottom of the script
|
||||||
|
|
||||||
|
trap 'kill $(jobs -p)' EXIT
|
||||||
|
|
||||||
if ((BASH_VERSINFO[0] < 4))
|
if ((BASH_VERSINFO[0] < 4))
|
||||||
then
|
then
|
||||||
echo "Sorry, you need bash 4.0 or newer to run this script."
|
echo "Sorry, you need bash 4.0 or newer to run this script."
|
||||||
|
Loading…
Reference in New Issue
Block a user