From 2ec7c53727a37de8975addf09a5bfbef87937e83 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 28 Jul 2016 20:14:05 +0100 Subject: [PATCH] fix bug --- installer/installer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/installer.go b/installer/installer.go index dc593149..006f1a5a 100644 --- a/installer/installer.go +++ b/installer/installer.go @@ -162,7 +162,7 @@ func initializeVariables() { } func checkVersion() bool { - out, _ := exec.Command("hugo", "version").Output() + out, _ := exec.Command(hugo, "version").Output() r := regexp.MustCompile(`v\d\.\d{2}`) v := r.FindStringSubmatch(string(out))[0]