Sfoglia il codice sorgente

fix:修改find命令参数

zhaohaipeng 9 mesi fa
parent
commit
048da5c8b9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ad/03_delete_timer_file.sh

+ 1 - 1
ad/03_delete_timer_file.sh

@@ -12,7 +12,7 @@ delete_predict_early_5d() {
     tmp_file_name=./files_to_delete.txt
 
     # 查询五天前的预测结果文件,并保存到临时文件
-    find "$target_directory" -type f -mtime +5 > "${tmp_file_name}"
+    find "$PREDICT_HOME" -type f -mtime +5 > "${tmp_file_name}"
 
     # 逐行读取临时文件中的路径并删除文件
     while IFS= read -r file; do