diff --git a/insthugo/insthugo.go b/insthugo/insthugo.go index 7640f3a9..46a069cc 100644 --- a/insthugo/insthugo.go +++ b/insthugo/insthugo.go @@ -84,13 +84,10 @@ func Install() string { err = os.Mkdir(bin, 0774) err = os.Mkdir(temp, 0774) - if !os.IsExist(err) { - fmt.Println(err) - os.Exit(-1) - } - tempfile := temp + "/" + filename + fmt.Print("Downloading Hugo from GitHub releases... ") + // Create the file tempfiles = append(tempfiles, tempfile) out, err := os.Create(tempfile) @@ -102,8 +99,6 @@ func Install() string { } defer out.Close() - fmt.Print("Downloading Hugo from GitHub releases... ") - // Get the data resp, err := http.Get(baseurl + filename) if err != nil {