From 3d77301eeb60905da32fc785a429e72b20afb1ad Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 11 Aug 2014 14:12:01 -0700 Subject: [PATCH] make grunt-shell tasks more portable --- Gruntfile.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index c40d2cabd..521a87e9b 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -112,27 +112,27 @@ module.exports = (grunt) -> command: """ git commit -am "Release <%= pkg.meta.name %> v<%= pkg.version %>." git tag -a <%= pkg.version %> -m "<%= pkg.meta.name %> v<%= pkg.version %>." - """ + """.split('\n').join('&&') beta: command: """ git tag -af beta -m "<%= pkg.meta.name %> v<%= pkg.version %>." git checkout gh-pages - git checkout beta 'builds/*<%= pkg.meta.suffix.beta %>.*' + git checkout beta "builds/*<%= pkg.meta.suffix.beta %>.*" git commit -am "Move <%= pkg.meta.name %> v<%= pkg.version %> to beta channel." git checkout - - """ + """.split('\n').join('&&') stable: command: """ git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.version %>." git checkout -b tmp git merge --no-commit -s ours gh-pages - git checkout gh-pages 'builds/*<%= pkg.meta.suffix.beta %>.*' + git checkout gh-pages "builds/*<%= pkg.meta.suffix.beta %>.*" git commit -am "Move <%= pkg.meta.name %> v<%= pkg.version %> to stable channel." git checkout gh-pages git merge --ff-only tmp git branch -d tmp git checkout @{-2} - """ + """.split('\n').join('&&') push: command: 'git push origin --tags -f && git push origin --all'