This commit is contained in:
Henrique Dias 2016-07-28 20:14:05 +01:00
parent f0a382f359
commit 2ec7c53727

View File

@ -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]