From 3a92c14a0680e2c3e12532b1b9567424eebae37c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 4 Dec 2013 09:06:23 -0800 Subject: [PATCH] add support for commit option to update_org_files --- update_org_files | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2