mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
fix logic for extensions
This commit is contained in:
parent
2697a6c682
commit
2fc0b75ac3
@ -397,12 +397,14 @@ program
|
||||
file = parse(file).name; // trim the .enc extension
|
||||
thisCommand.opts().decrypt = true;
|
||||
} else {
|
||||
opts.encrypt = false;
|
||||
thisCommand.opts().decrypt = false;
|
||||
}
|
||||
|
||||
if (extname(file) === '.gz') {
|
||||
file = parse(file).name; // trim the .gz extension
|
||||
thisCommand.opts().decompress = true;
|
||||
} else {
|
||||
thisCommand.opts().decompress = false;
|
||||
}
|
||||
})
|
||||
.hook(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user