Dennis Rodewyk 5 vuotta sitten
vanhempi
commit
dcdc467c63
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      hugo-encrypt.go

+ 1 - 1
hugo-encrypt.go

@@ -70,7 +70,7 @@ func main() {
         flag.PrintDefaults()
 	}
 	sitePath := os.Args[1]
-	if sitePath == nil {
+	if sitePath == "" {
 	    fmt.Printf("dir not explicitly set, using default\n")
 		os.Exit(1)
 	}