Archived
1
0

feat(cli): support true for CS_DISABLE_FILE_DOWNLOADS (#5134)

After some feedback, we realized it is more intuitive to disable file
downloads by setting the environment variable
`CS_DISABLE_FILE_DOWNLOADS` to `true` than `1`. This commit adds support
for both.
This commit is contained in:
Joe Previte
2022-04-26 15:09:53 -05:00
committed by GitHub
parent a0b36147ea
commit e3c8bd692c
2 changed files with 13 additions and 1 deletions

View File

@ -542,7 +542,7 @@ export async function setDefaults(cliArgs: UserProvidedArgs, configArgs?: Config
args.password = process.env.PASSWORD
}
if (process.env.CS_DISABLE_FILE_DOWNLOADS === "1") {
if (process.env.CS_DISABLE_FILE_DOWNLOADS?.match(/^(1|true)$/)) {
args["disable-file-downloads"] = true
}