From c885c03130117d57e80c60372b5b936b4012c41d Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Thu, 5 Aug 2021 23:51:38 +0200 Subject: [PATCH] Fix filemode not being octal --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a62893c..0c53c66 100644 --- a/main.go +++ b/main.go @@ -71,7 +71,7 @@ func main() { if *toFile != "" && *fromFile == "" { json, _ := json.MarshalIndent(filesMap.FilesByHash, "", " ") - ioutil.WriteFile(*toFile, json, 644) + ioutil.WriteFile(*toFile, json, 0644) } if *deleteDupesIn != "" {