Always trap

This commit is contained in:
Fierelier 2024-02-17 09:49:24 +01:00
parent b74268e19b
commit 6b81d61a3b
4 changed files with 1 additions and 3 deletions

View File

@ -3,6 +3,7 @@ set -e
APP_CMD="$(realpath "$BASH_SOURCE")"
APP_DIR="$(dirname "$APP_CMD")"
source "$APP_DIR/env"
source "$APP_DIR/cmd/trap"
echo "Locking '/run/$APP_NAME/lock' ..." >&2
mkdir -p "/run/$APP_NAME"

View File

@ -1,6 +1,5 @@
#!/usr/bin/env bash
set -e
source "$APP_DIR/cmd/trap"
eval "$(bash "$APP_DIR/cmd/main" plist "$2")"
if ! [ "$mm_type" = "disk" ]; then
echo "$mm_path is not a disk." >&2

View File

@ -1,6 +1,5 @@
#!/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

View File

@ -1,6 +1,5 @@
#!/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