Make sure to capture all exit signals so that closing is handled correctly.

This commit is contained in:
Storm Dragon
2024-05-11 13:57:59 -04:00
parent cad3f6c4e2
commit c4854b5150

View File

@@ -339,7 +339,7 @@ while [ $# -gt 0 ]; do
shift
done
trap cleanup EXIT
trap cleanup SIGINT SIGTERM EXIT
# If there were args, the program was controled by those and we do not need the menu.
if [ $argNum -gt 0 ]; then