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
f0a382f359
commit
2ec7c53727
@ -162,7 +162,7 @@ func initializeVariables() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkVersion() bool {
|
func checkVersion() bool {
|
||||||
out, _ := exec.Command("hugo", "version").Output()
|
out, _ := exec.Command(hugo, "version").Output()
|
||||||
|
|
||||||
r := regexp.MustCompile(`v\d\.\d{2}`)
|
r := regexp.MustCompile(`v\d\.\d{2}`)
|
||||||
v := r.FindStringSubmatch(string(out))[0]
|
v := r.FindStringSubmatch(string(out))[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user