Skip to content

Commit

Permalink
#1115 invalid escape sequence - log_cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielwol committed Dec 17, 2024
1 parent d9c299c commit be06be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dags/log_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def create_dag(filepath, doc, start_date, schedule_interval):
if [ $TYPE == file ];
then
FIND_STATEMENT="find ${BASE_LOG_FOLDER}/*/* -type f -mtime +${MAX_LOG_AGE_IN_DAYS}"
DELETE_STMT="${FIND_STATEMENT} -exec rm -f {} \;"
DELETE_STMT="${FIND_STATEMENT} -exec rm -f {} \\;"
else
FIND_STATEMENT="find ${BASE_LOG_FOLDER}/*/* -type d -empty"
DELETE_STMT="${FIND_STATEMENT} -prune -exec rm -rf {} \;"
DELETE_STMT="${FIND_STATEMENT} -prune -exec rm -rf {} \\;"
fi
echo "Executing Find Statement: ${FIND_STATEMENT}"
FILES_MARKED_FOR_DELETE=`eval ${FIND_STATEMENT}`
Expand Down

0 comments on commit be06be0

Please sign in to comment.