diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2019-04-03 16:32:10 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2019-04-03 16:32:10 -0500 |
| commit | 153c458f9e6d95a3e1ee205be28dbdbb32ee88eb (patch) | |
| tree | 1ac5d4f334fedab1688b98c5b997bea2996574d9 /scripts | |
| parent | d75cee4996af64336c7823968c8cdb475b5c5aff (diff) | |
Fix type errors during argument parsing
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/update_manifest.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/update_manifest.js b/scripts/update_manifest.js index ea1f85e6..bcb3ac7b 100755 --- a/scripts/update_manifest.js +++ b/scripts/update_manifest.js @@ -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", |
