From f0c235ac67df511da21da4002dd8d2cf9a7d2312 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 5 Feb 2024 21:00:26 +0100 Subject: [PATCH] changed path --- cleanup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cleanup.sh b/cleanup.sh index c85bb93..efd6679 100644 --- a/cleanup.sh +++ b/cleanup.sh @@ -18,9 +18,9 @@ for SUBDIR in "$MAIN_DIRECTORY"/*; do # Only proceed if it is a directory if [ -d "$SUBDIR" ]; then echo "Validating directory: $SUBDIR" - + scripts_directory="$(dirname "$(dirname "$(realpath "$0")")")" # Call the Python script for validation - python ../directory-validator/directory-validator.py "$SUBDIR" --validate + python $scripts_directory/directory-validator/directory-validator.py "$SUBDIR" --validate VALIDATION_STATUS=$? if [ $VALIDATION_STATUS -eq 0 ]; then