diff --git a/server-vm.sh b/server-vm.sh index 6678474..6570acf 100644 --- a/server-vm.sh +++ b/server-vm.sh @@ -1,7 +1,6 @@ # /bin/bash main() { - trap cleanup exit _discord _dolphin _stt @@ -16,6 +15,7 @@ cleanup() { log killing $jobs_to_clean kill -9 $jobs_to_clean } +trap cleanup EXIT log() { echo "$(date) > $*" >&2