From: Michal Sojka Date: Sun, 17 Mar 2013 07:19:42 +0000 (+0100) Subject: Do not fail if there is nothing to commit X-Git-Tag: debian/20130317~1 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/duhome.git/commitdiff_plain/a0f5fc32265a4c3a896b1a6ef5d258253658b4d0 Do not fail if there is nothing to commit --- diff --git a/duhome b/duhome index 01310eb..a503547 100755 --- a/duhome +++ b/duhome @@ -21,7 +21,7 @@ case "$1" in cd $DATA shift GIT_AUTHOR_NAME="$0" GIT_AUTHOR_EMAIL="$USER@$(hostname -f)" \ - git commit -m 'Automatic commit' "$@" + git commit --quite -m 'Automatic commit' "$@" || : ;; status) cd $DATA