Compare commits

..

No commits in common. "8cac183c17cf4af6460a3be797e0d0c2d0712d40" and "62d69bac03b1dae2988649427304f53bc9f573fe" have entirely different histories.

2 changed files with 3 additions and 3 deletions

2
cleanup-all.sh Executable file → Normal file
View File

@ -7,7 +7,7 @@ TRIGGER_DIR="$2"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Define the path to the original cleanup script using the script directory path # Define the path to the original cleanup script using the script directory path
CLEANUP_SCRIPT="$SCRIPT_DIR/cleanup.sh" CLEANUP_SCRIPT="$SCRIPT_DIR/cleanup_script.sh"
# Path to the main directory # Path to the main directory
MAIN_DIRECTORY="/Backups" MAIN_DIRECTORY="/Backups"

4
cleanup.sh Executable file → Normal file
View File

@ -18,9 +18,9 @@ for SUBDIR in "$MAIN_DIRECTORY"/*; do
# Only proceed if it is a directory # Only proceed if it is a directory
if [ -d "$SUBDIR" ]; then if [ -d "$SUBDIR" ]; then
echo "Validating directory: $SUBDIR" echo "Validating directory: $SUBDIR"
scripts_directory="$(dirname "$(dirname "$(realpath "$0")")")"
# Call the Python script for validation # Call the Python script for validation
python $scripts_directory/directory-validator/directory-validator.py "$SUBDIR" --validate python ../directory-validator/directory-validator.py "$SUBDIR" --validate
VALIDATION_STATUS=$? VALIDATION_STATUS=$?
if [ $VALIDATION_STATUS -eq 0 ]; then if [ $VALIDATION_STATUS -eq 0 ]; then