Explorar o código

Support AURDEST

the AURDEST environment variable can now be used to configure the build
dir.
morganamilo %!s(int64=5) %!d(string=hai) anos
pai
achega
35b2297f1e
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      main.go

+ 5 - 0
main.go

@@ -48,6 +48,11 @@ func initConfig() error {
 		}
 	}
 
+	aurdest := os.Getenv("AURDEST")
+	if aurdest != "" {
+		config.BuildDir = aurdest
+	}
+
 	return nil
 }