From ae1e3e640ac81aa46b189525ceaadb7eb19d247a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 24 Mar 2017 21:57:00 +0800 Subject: [PATCH] Allow -clear-prefs --- source/net/filebot/Main.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index 9dadb067..20cdd568 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -71,12 +71,6 @@ public class Main { } if (args.clearCache() || args.clearUserData()) { - // clear cache must be called manually - if (System.console() == null) { - log.severe("`filebot -clear-cache` has been disabled due to abuse."); - System.exit(1); - } - // clear persistent user preferences if (args.clearUserData()) { log.info("Reset preferences"); @@ -85,6 +79,12 @@ public class Main { // clear caches if (args.clearCache()) { + // clear cache must be called manually + if (System.console() == null) { + log.severe("`filebot -clear-cache` has been disabled due to abuse."); + System.exit(1); + } + log.info("Clear cache"); for (File folder : getChildren(ApplicationFolder.Cache.get(), FOLDERS)) { log.fine("* Delete " + folder);