aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2023-10-02 16:33:21 +1100
committerAndrew Harvey <andrew@alantgeo.com.au>2023-10-02 16:33:21 +1100
commit919f4a8c6ad65ce5160fde503b8a5ab95fff3f4d (patch)
tree81a56bac8894ff9a3cee4669cdbae11e02d3f5d2
parent4b0f6084d38e29276179789cb42990d072e845b7 (diff)
fix mr2osc
-rwxr-xr-xbin/mr2osc.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mr2osc.mjs b/bin/mr2osc.mjs
index 4bca6a2..fe5eb15 100755
--- a/bin/mr2osc.mjs
+++ b/bin/mr2osc.mjs
@@ -12,6 +12,7 @@ import _ from 'lodash'
import fetch from 'node-fetch'
import xml from 'xml-js'
import yargs from 'yargs'
+import path from 'path'
const argv = yargs(process.argv.slice(2))
.option('dry-run', {
@@ -283,7 +284,6 @@ async function uploadChanges() {
const totalChangesets = Math.ceil(totalElements / MAXIMUM_ELEMENTS_PER_UPLOAD_REQUEST)
if (totalChangesets > 1) {
console.log(`${totalElements} exceeds API maximum elements of ${MAXIMUM_ELEMENTS_PER_UPLOAD_REQUEST} splitting into ${totalChangesets} changesets`)
- process.exit(1)
}
for (let changesetIndex = 0; changesetIndex < totalChangesets; changesetIndex++) {