diff options
| author | XhmikosR <[email protected]> | 2021-11-24 10:49:35 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-24 10:49:35 +0200 |
| commit | fa33e83f25faf8c378b99126fbd69977e667ad9a (patch) | |
| tree | 0552fd165e38eddfdbe71f06bd6cb2e4653d45b5 /build | |
| parent | 58ffe2334a94a061afab87c9fd1266445016bca5 (diff) | |
| download | bootstrap-fa33e83f25faf8c378b99126fbd69977e667ad9a.tar.xz bootstrap-fa33e83f25faf8c378b99126fbd69977e667ad9a.zip | |
build/change-version.js: fix wrong map usage (#35395)
Diffstat (limited to 'build')
| -rw-r--r-- | build/change-version.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/change-version.js b/build/change-version.js index 63f231ea2..22a169db9 100644 --- a/build/change-version.js +++ b/build/change-version.js @@ -57,7 +57,7 @@ async function replaceRecursively(file, oldVersion, newVersion) { } async function main(args) { - const [oldVersion, newVersion] = args + let [oldVersion, newVersion] = args if (!oldVersion || !newVersion) { console.error('USAGE: change-version old_version new_version [--verbose] [--dry[-run]]') @@ -66,7 +66,7 @@ async function main(args) { } // Strip any leading `v` from arguments because otherwise we will end up with duplicate `v`s - [oldVersion, newVersion].map(arg => arg.startsWith('v') ? arg.slice(1) : arg) + [oldVersion, newVersion] = [oldVersion, newVersion].map(arg => arg.startsWith('v') ? arg.slice(1) : arg) try { const files = await globby(GLOB, GLOBBY_OPTIONS) |
