You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2016/03/08 19:41:49 UTC
cordova-coho git commit: for-each command: Make $r replacement global
Repository: cordova-coho
Updated Branches:
refs/heads/master e5b8e4af2 -> fcf16aad0
for-each command: Make $r replacement global
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/fcf16aad
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/fcf16aad
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/fcf16aad
Branch: refs/heads/master
Commit: fcf16aad0713fc1e0132730ca26e1053ef16ac50
Parents: e5b8e4a
Author: Nikhil Khandelwal <ni...@microsoft.com>
Authored: Mon Mar 7 17:41:59 2016 -0800
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Tue Mar 8 10:41:18 2016 -0800
----------------------------------------------------------------------
src/for-each.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/fcf16aad/src/for-each.js
----------------------------------------------------------------------
diff --git a/src/for-each.js b/src/for-each.js
index c8238fc..4d26145 100644
--- a/src/for-each.js
+++ b/src/for-each.js
@@ -47,7 +47,7 @@ module.exports = function*() {
yield repoutil.forEachRepo(repos, function*(repo) {
var replacedCmd = [];
for (var i = 0; i < cmd.length; i++) {
- replacedCmd[i] = cmd[i].replace('$r', repo.repoName);
+ replacedCmd[i] = cmd[i].replace(/\$r/g, repo.repoName);
}
yield executil.execHelper(replacedCmd, false, true);
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org