diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-11-24 11:49:35 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-12-16 10:23:08 +0300 |
commit | 7245437856effda610210f63d07ccac64d4b169c (patch) | |
tree | 8acd7ee7656d77ddc81b73471bbd29d8147fbfa7 | |
parent | d99c820f9c4d365f1bb7a800d2051dc7320e5f2e (diff) |
build/change-version.js: fix wrong map usage (#35395)
-rwxr-xr-x | 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 08313c1e81..841e0360aa 100755 --- 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) |