瀏覽代碼

Ignore dirs

Zach Isbach 6 年之前
父節點
當前提交
7be2d33fd0
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      fullArchive.sh

+ 2 - 2
fullArchive.sh

@@ -6,8 +6,8 @@ if [ ! -d "${1}" ]; then
 fi
 
 # Clear last recode files every 15 days
-if [ $(( `date '+%d'` % 15 )) -eq 0 ]; then
-	find "${1}" -name .lastFindRecode -size 0 -delete
+if [ $(( `date '+%-d'` % 15 )) -eq 0 ]; then
+	find "${1}" -type f -name .lastFindRecode -size 0 -delete
 fi
 
 # Force archive encoding