From 8769095d8637810c1cc7bef6ad89fd483393903f Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 5 Mar 2016 16:09:55 +0000 Subject: [PATCH] Add chmod 0755 to hugo executable --- hugo/hugo.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hugo/hugo.go b/hugo/hugo.go index a8592253..4764ed11 100644 --- a/hugo/hugo.go +++ b/hugo/hugo.go @@ -122,6 +122,13 @@ func GetPath() string { panic(err) } + if err != nil { + fmt.Println(err) + os.Exit(-1) + } + + err = os.Chmod(hugo, 0755) + if err != nil { fmt.Println(err) os.Exit(-1)