uncomment if

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