Kill netcat on exit

This commit is contained in:
Kroese authored and GitHub committed 2023-05-03 05:56:11 +02:00
1 parent 68b0e3b9b6
commit 0782c5c57f
1 file changed
+2
+2
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -eu
trap 'kill 0' EXIT
trap exit SIGINT SIGTERM
# Serve the page