浏览代码

Support AURDEST

the AURDEST environment variable can now be used to configure the build
dir.
morganamilo 5 年之前
父节点
当前提交
35b2297f1e
共有 1 个文件被更改,包括 5 次插入0 次删除
  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
 }