зеркало из https://github.com/microsoft/shelljs.git
Fixed coffeescript syntax in top example
The `cat 'macro.js'` needs parentesis to not include `file`. ```javascript sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat('macro.js', file)); ```
This commit is contained in:
Родитель
284fc1cc34
Коммит
a10eee9b40
|
@ -81,7 +81,7 @@ cd 'lib'
|
||||||
for file in ls '*.js'
|
for file in ls '*.js'
|
||||||
sed '-i', 'BUILD_VERSION', 'v0.1.2', file
|
sed '-i', 'BUILD_VERSION', 'v0.1.2', file
|
||||||
sed '-i', /.*REMOVE_THIS_LINE.*\n/, '', file
|
sed '-i', /.*REMOVE_THIS_LINE.*\n/, '', file
|
||||||
sed '-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat 'macro.js', file
|
sed '-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat('macro.js'), file
|
||||||
cd '..'
|
cd '..'
|
||||||
|
|
||||||
# Run external tool synchronously
|
# Run external tool synchronously
|
||||||
|
|
Загрузка…
Ссылка в новой задаче