Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2017-11-28 11:43:09 +0300
committerGitHub <noreply@github.com>2017-11-28 11:43:09 +0300
commit6050d72a3a0423fd3383ab978f8c3843f91c1002 (patch)
treea4c88c4c0574e365fa134e9d868795dc8f3e73a7 /build/change-version.js
parent05d88ca285100e57220bdb7079a3bcbd13da87d3 (diff)
Combine path and remove variable used in one place. (#24873)
Diffstat (limited to 'build/change-version.js')
-rwxr-xr-xbuild/change-version.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/change-version.js b/build/change-version.js
index f84d4e32c1..ab4579072b 100755
--- a/build/change-version.js
+++ b/build/change-version.js
@@ -14,8 +14,8 @@
const fs = require('fs')
const path = require('path')
const sh = require('shelljs')
+
sh.config.fatal = true
-const sed = sh.sed
// Blame TC39... https://github.com/benjamingr/RegExp.escape/issues/37
RegExp.quote = (string) => string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&')
@@ -58,7 +58,7 @@ function replaceRecursively(directory, excludedDirectories, allowedExtensions, o
replacement = RegExp.quoteReplacement(replacement)
const updateFile = !DRY_RUN ? (filepath) => {
if (allowedExtensions.has(path.parse(filepath).ext)) {
- sed('-i', original, replacement, filepath)
+ sh.sed('-i', original, replacement, filepath)
}
} : (filepath) => {
if (allowedExtensions.has(path.parse(filepath).ext)) {