mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix bug
This commit is contained in:
parent
def3c33332
commit
69dc0be7ed
@ -26,7 +26,7 @@ var (
|
||||
tempfiles []string
|
||||
filename = "hugo_" + version + "_" + runtime.GOOS + "_" + runtime.GOARCH
|
||||
sha256Hash = map[string]string{
|
||||
"hugo_0.15_darwin_386.zip": "",
|
||||
"hugo_0.15_darwin_386.zip": "f9b7353f9b64e7aece5f7981e5aa97dc4b31974ce76251edc070e77691bc03e2",
|
||||
"hugo_0.15_darwin_amd64.zip": "",
|
||||
"hugo_0.15_dragonfly_amd64.zip": "",
|
||||
"hugo_0.15_freebsd_386.zip": "",
|
||||
@ -155,13 +155,13 @@ func Install() string {
|
||||
|
||||
fmt.Println("done.")
|
||||
|
||||
tempfiles = append(tempfiles, bin+"README.md", bin+"LICENSE.md")
|
||||
tempfiles = append(tempfiles, bin+"/README.md", bin+"/LICENSE.md")
|
||||
clean()
|
||||
|
||||
ftorename := bin + strings.Replace(filename, ".tar.gz", "", 1)
|
||||
ftorename := bin + "/" + strings.Replace(filename, ".tar.gz", "", 1)
|
||||
|
||||
if runtime.GOOS == "windows" {
|
||||
ftorename = bin + strings.Replace(filename, ".zip", ".exe", 1)
|
||||
ftorename = bin + "/" + strings.Replace(filename, ".zip", ".exe", 1)
|
||||
}
|
||||
|
||||
os.Rename(ftorename, hugo)
|
||||
|
Loading…
Reference in New Issue
Block a user