What is this shell command doing?
trap 'sudo kill -9 -- -$$' EXIT
$$
is the process ID of the script itself-$$
means use the process group ID--
signals the end of optionsSo upon exit the trap
will kill all subprocesses of the script.
§ Internal Variables
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With