uncomment if

This commit is contained in:
Henrique Dias 2016-02-23 20:30:17 +00:00
parent 2c5d6f3d4e
commit b873605bad
1 changed files with 5 additions and 4 deletions

View File

@ -10,6 +10,7 @@ import (
"log"
"net/http"
"os"
"os/exec"
"os/user"
"path/filepath"
"runtime"
@ -46,10 +47,10 @@ var (
func GetPath() string {
initializeVariables()
/* // Check if Hugo is already on $PATH
if hugo, err := exec.LookPath("hugo"); err == nil {
return hugo
} */
// Check if Hugo is already on $PATH
if hugo, err := exec.LookPath("hugo"); err == nil {
return hugo
}
// Check if Hugo is on $HOME/.caddy/bin
if _, err := os.Stat(hugo); err == nil {