pull/57/head
Henrique Dias 2016-02-22 21:30:38 +00:00
parent 7a929b736c
commit b30079509d
1 changed files with 2 additions and 7 deletions

View File

@ -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 {