mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-18 00:45:47 +00:00
update
This commit is contained in:
parent
7a929b736c
commit
b30079509d
1 changed files with 2 additions and 7 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue