uncomment if
parent
2c5d6f3d4e
commit
b873605bad
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue