From: Don Armstrong Date: Wed, 4 Dec 2013 17:06:23 +0000 (-0800) Subject: add support for commit option to update_org_files X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3a92c14a0680e2c3e12532b1b9567424eebae37c;p=bin.git add support for commit option to update_org_files --- diff --git a/update_org_files b/update_org_files index d7cec3e..88afa61 100755 --- a/update_org_files +++ b/update_org_files @@ -6,7 +6,9 @@ for a in $(mr list |grep 'list:'|grep -v 'finished'|awk -F'list: ' '{print $2}' (cd "$a"; if git status --porcelain|grep '^ M'|grep -q '.org$'; then git commit -m'update org files' $(mr --no-recurse status |grep '^ M'|grep '.org$'|sed 's/^ M//g'); - git push; + if [ "$1" != "commit" ]; then + git push; + fi; fi; ); done;