From 0feda2290d02c11a76ecd31e6a3ec9e9de8c445c Mon Sep 17 00:00:00 2001 From: NACHC-CAD Date: Thu, 22 Dec 2022 07:27:37 -0500 Subject: [PATCH] looks good! --- .../tools/githubbackup/util/backup/DeleteOlderThanOneMonth.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/nachc/tools/githubbackup/util/backup/DeleteOlderThanOneMonth.java b/src/main/java/org/nachc/tools/githubbackup/util/backup/DeleteOlderThanOneMonth.java index 3d0e001..982df4c 100644 --- a/src/main/java/org/nachc/tools/githubbackup/util/backup/DeleteOlderThanOneMonth.java +++ b/src/main/java/org/nachc/tools/githubbackup/util/backup/DeleteOlderThanOneMonth.java @@ -32,7 +32,7 @@ public static void exec(BufferedWriter writer) { String fileName = file.getName(); log.info("FILE: " + fileName); writer.append("\nFILE: " + fileName); - if("MONTHLY".equals(fileName) == false && "github-backup".equals(fileName) == false && file.isDirectory() && fileName.contains(thisMonth)) { + if("MONTHLY".equals(fileName) == false && "github-backup".equals(fileName) == false && file.isDirectory() && fileName.contains(thisMonth) == false) { log.info("!!!REMOVING!!!"); writer.append("\n!!!REMOVING!!!"); FileUtil.rmdir(file);