Explorar o código

The one before works

Dennis Rodewyk %!s(int64=5) %!d(string=hai) anos
pai
achega
34fb56cae7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hugo-encrypt.go

+ 1 - 1
hugo-encrypt.go

@@ -97,7 +97,7 @@ func main() {
 	} else {
 	    fmt.Printf("server not explicitly set, using default\n")
 	}
-	err := filepath.Walk(sitepath, func(path string, f os.FileInfo, err error) error {
+	err := filepath.Walk(flag.CommandLine.LookupActual("server"), func(path string, f os.FileInfo, err error) error {
 		if f == nil {
 			return err
 		}