From a10eee9b40436132b5782ad97297b3c569632d71 Mon Sep 17 00:00:00 2001 From: Max Nordlund Date: Wed, 18 Dec 2013 09:46:08 +0100 Subject: [PATCH] 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)); ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index efed358..18990c7 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ cd 'lib' for file in ls '*.js' sed '-i', 'BUILD_VERSION', 'v0.1.2', 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 '..' # Run external tool synchronously