mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Version uses binary name instead of hugo
On Windows the binary name is hugo.exe and running hugo version results in this error: GetFileAttributesEx D:\Dev\Go\gopath\bin\hugo: The system cannot find the file specified. This fixes that error and allows the binary name to be something other than hugo on any OS.
This commit is contained in:
parent
06b1a88358
commit
2d8e15a565
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ func setBuildDate() {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fi, err := os.Lstat(filepath.Join(dir, "hugo"))
|
fi, err := os.Lstat(filepath.Join(dir, filepath.Base(fname)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue