aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2019-04-03 16:32:10 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2019-04-03 16:32:10 -0500
commit153c458f9e6d95a3e1ee205be28dbdbb32ee88eb (patch)
tree1ac5d4f334fedab1688b98c5b997bea2996574d9 /scripts
parentd75cee4996af64336c7823968c8cdb475b5c5aff (diff)
Fix type errors during argument parsing
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_manifest.js13
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",