prefix en var

This commit is contained in:
Ronnie Roller 2020-02-03 21:31:18 -08:00
parent 1e069fe7fa
commit 2bc0080f55

View file

@ -221,7 +221,7 @@ func isValidId(id string) bool {
}
func getDownloadDir() string {
dir := os.Getenv("DOWNLOAD_DIR")
dir := os.Getenv("MR_DOWNLOAD_DIR")
if dir != "" {
if !strings.HasSuffix(dir, "/") {
return dir + "/"