Fix type errors during argument parsing

This commit is contained in:
oldmud0 2019-04-03 16:32:10 -05:00
parent d75cee4996
commit 153c458f9e

View File

@ -40,11 +40,14 @@ argParser.addArgument([ "-e", "--executable" ], {
const {
manifestFile,
version,
fullZipFile,
incremental,
executable
fullZipFileArgs,
incrementalArgs,
executableArgs
} = argParser.parseArgs();
const [incrementalZipFile, deletionsFile] = incremental || [];
const [incrementalZipFile, deletionsFile] = incrementalArgs || [];
const [fullZipFile] = fullZipFileArgs || [];
const [executable] = executableArgs || [];
const manifest = JSON.parse(fs.readFileSync(manifestFile));
@ -71,7 +74,7 @@ manifest.versions = [{
.digest("hex")
}
] : undefined,
update: incremental ? [
update: incrementalArgs ? [
...deleteActions,
{
action: "dl",