1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Automatically set -no-xattr in --action test mode

This commit is contained in:
Reinhard Pointner 2016-05-28 01:44:13 +08:00
parent c6634ab2b5
commit dedc9c9699

View File

@ -373,11 +373,11 @@ public class Main {
if (args.unixfs) { if (args.unixfs) {
System.setProperty("unixfs", "true"); System.setProperty("unixfs", "true");
} }
if (args.disableExtendedAttributes) { if (args.disableExtendedAttributes || "TEST".equalsIgnoreCase(args.action)) {
System.setProperty("useExtendedFileAttributes", "false"); System.setProperty("useExtendedFileAttributes", "false");
System.setProperty("useCreationDate", "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 System.setProperty("application.rename.history", "false"); // do not keep history of --action test rename operations
} }
} }