Fix fallback argument in CLI (#5646)

I don't know exactly what happened here, but it seems like I screwed
this trivial fallback up in a spectacular way... anyway, here to fix it!
This commit is contained in:
Robin Malfait 2021-09-29 23:33:43 +02:00 • committed by GitHub
parent 71be5a10e9
commit 39ccd06141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -422,7 +422,7 @@ async function build() {
if (args['--purge']) {
log.warn(['The `--purge` flag has been deprecated.', 'Please use `--content` instead.'])
if (!args['--content']) {
args['--content'] = ['--purge']
args['--content'] = args['--purge']
}
}