removed unecessary trigger

This commit is contained in:
Kevin Veen-Birkenbach 2024-02-06 00:00:25 +01:00
parent 8cac183c17
commit 13b1b7d493

View File

@ -1,8 +1,5 @@
#!/bin/bash
# Define trigger directory argument as TRIGGER_DIR
TRIGGER_DIR="$2"
# Get the absolute path of the directory where the current script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
@ -29,7 +26,7 @@ for BACKUP_FOLDER_PATH in "$MAIN_DIRECTORY"/*; do
echo "Running cleanup script for folder: $BACKUP_FOLDER"
# Call the cleanup script
"$CLEANUP_SCRIPT" "$BACKUP_FOLDER" "$TRIGGER_DIR"
"$CLEANUP_SCRIPT" "$BACKUP_FOLDER"
else
echo "Directory $BACKUP_FOLDER_PATH/backup-docker-to-local not found."
fi