Procházet zdrojové kódy

Support AURDEST

the AURDEST environment variable can now be used to configure the build
dir.
morganamilo před 5 roky
rodič
revize
35b2297f1e
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  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
 }