From dedc9c96996633697536268690db3f6b8806ed73 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 28 May 2016 01:44:13 +0800 Subject: [PATCH] Automatically set -no-xattr in --action test mode --- source/net/filebot/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/Main.java b/source/net/filebot/Main.java index 028e5b97..ba909069 100644 --- a/source/net/filebot/Main.java +++ b/source/net/filebot/Main.java @@ -373,11 +373,11 @@ public class Main { if (args.unixfs) { System.setProperty("unixfs", "true"); } - if (args.disableExtendedAttributes) { + if (args.disableExtendedAttributes || "TEST".equalsIgnoreCase(args.action)) { System.setProperty("useExtendedFileAttributes", "false"); System.setProperty("useCreationDate", "false"); } - if (args.action.equalsIgnoreCase("test")) { + if ("TEST".equalsIgnoreCase(args.action)) { System.setProperty("application.rename.history", "false"); // do not keep history of --action test rename operations } }