X-Git-Url: https://git.donarmstrong.com/?p=don.git;a=blobdiff_plain;f=posts%2Fworking_with_org.mdwn;h=c786300f9f011f5e74b948f1a6c61c29f1aeae97;hp=9f5bbc0e5da2804d6558cb6222c453a38e95ff37;hb=498092782ca4d173e9759371db961789238888ba;hpb=afd187e65eb57bfc98ab3adb6ec35b319b6d6e75 diff --git a/posts/working_with_org.mdwn b/posts/working_with_org.mdwn index 9f5bbc0..c786300 100644 --- a/posts/working_with_org.mdwn +++ b/posts/working_with_org.mdwn @@ -20,8 +20,8 @@ ORG_GREP='-e .org$ -e .org_archive$ -e .org_done$' if [ "x$1" == "xdoit" ]; then if git status --porcelain -z | grep -z '^ M' | grep -zq $ORG_GREP; then - git status --porcelain -z | grep -z '^ M' | grep -z $ORG_GREP | \ - sed -z 's/^ M//g' | \ + git status --porcelain -z | grep -z '^ M' | grep -z $ORG_GREP | \ + sed -z 's/^ M//g' | \ xargs -0 git commit -m'update org files' git push; fi;