From 919f4a8c6ad65ce5160fde503b8a5ab95fff3f4d Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Mon, 2 Oct 2023 16:33:21 +1100 Subject: fix mr2osc --- bin/mr2osc.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/mr2osc.mjs') 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++) { -- cgit v1.2.3