Trap terminal quit for certain actions

This commit is contained in:
Fierelier 2024-02-15 16:37:13 +01:00
parent 3144fe2f91
commit a68ccd22ea
4 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
source "$APP_DIR/cmd/trap"
eval "$(bash "$APP_DIR/cmd/main" plist "$2")"
eject "$mm_path"
set +e

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
source "$APP_DIR/cmd/trap"
eval "$(bash "$APP_DIR/cmd/main" plist "$2")"
if [ "$mm_format" = "crypto_LUKS" ]; then

2
app/cmd/trap Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
trap "" SIGINT SIGTERM SIGQUIT SIGHUP

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
source "$APP_DIR/cmd/trap"
eval "$(bash "$APP_DIR/cmd/main" plist "$2")"
if [ "$mm_format" = "crypto_LUKS" ]; then