fix logic for extensions

This commit is contained in:
Ben Irvin 2023-01-24 09:38:57 +01:00
parent 2697a6c682
commit 2fc0b75ac3

View File

@ -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(