소스 검색

scripts: cleanup fetch_whitelisted_tags_*.log using crobjob script

Shiv Tyagi 1 년 전
부모
커밋
ac24c25cf3
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      scripts/update_remotes_json_cronjob.sh

+ 3 - 1
scripts/update_remotes_json_cronjob.sh

@@ -24,7 +24,9 @@ TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
 # Function to clean up old log files
 cleanup_old_logs() {
   # Find and sort log files by modification time, oldest first
-  LOG_FILES=($(ls -1t ${LOGDIR}/fetch_releases_*.log 2>/dev/null))
+  LOG_FILES=($(ls -1t ${LOGDIR}/fetch_releases_*.log \
+                      ${LOGDIR}/fetch_whitelisted_tags_*.log \
+                      2>/dev/null))
 
   # Count the number of log files
   NUM_LOG_FILES=${#LOG_FILES[@]}