From 1b1675c9672ed240e7192f9b4ee1cc6b67516f5e Mon Sep 17 00:00:00 2001 From: Uwe Dauernheim Date: Mon, 25 Dec 2017 14:03:29 +0100 Subject: [PATCH] Make generated mock file non-executable --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d525994..e9a17d9 100644 --- a/main.go +++ b/main.go @@ -54,6 +54,6 @@ func main() { } // create the file if len(*outFile) > 0 { - err = ioutil.WriteFile(*outFile, buf.Bytes(), 0777) + err = ioutil.WriteFile(*outFile, buf.Bytes(), 0644) } }