Improve previous commit (JSON output)
authorMikael Berthe <mikael@lilotux.net>
Sat, 01 Dec 2018 22:46:09 +0100
changeset 44 af90d9396ef1
parent 43 95d940f9598e
child 45 ea6a9ba7a3c8
Improve previous commit (JSON output)
goduf.go
--- a/goduf.go	Thu Nov 29 21:51:26 2018 +0100
+++ b/goduf.go	Sat Dec 01 22:46:09 2018 +0100
@@ -508,8 +508,12 @@
 	myLog.Println(3, "* Number of match groups:", len(result))
 
 	// Done!  Prepare results data
-	if len(result) > 0 && !options.Summary && !options.OutToJSON {
-		myLog.Println(1, "* Dupes:")
+	if len(result) > 0 && !options.Summary {
+		if options.OutToJSON {
+			myLog.Println(1, "* Dumping dupes as JSON...")
+		} else {
+			myLog.Println(1, "* Dupes:")
+		}
 	}
 
 	// Sort files by path inside each group