update
parent
7a929b736c
commit
b30079509d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue