Skip to content

Commit cc96231

Browse files
authored
Fixing WatchDir
Avoid runtime error when user only gives two arguments.
1 parent 97e2d11 commit cc96231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/tiramon/cg/filemerge/WatchDir.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public static void main(String[] args) throws IOException {
253253
WatchDir d = new WatchDir(dir, new File(args[targetArg]));
254254
d.gatherFiles();
255255
d.createOutput();
256-
if (args.length <= 3) {
256+
if (args.length == 3) {
257257
if (args[2].equals("once")) {
258258
return;
259259
}

0 commit comments

Comments
 (0)