]> rtime.felk.cvut.cz Git - sojka/duhome.git/commitdiff
Silence git if there is nothing to commit
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 20 Mar 2013 08:15:43 +0000 (09:15 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 20 Mar 2013 08:15:43 +0000 (09:15 +0100)
duhome

diff --git a/duhome b/duhome
index 2cebe27e7462d9bcc07c40391000b0bb5255d7e6..15896fe13f76216fafcf6030c52d47fbcdfc824d 100755 (executable)
--- 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 --quiet -m 'Automatic commit' "$@" || :
+           git commit --quiet -m 'Automatic commit' "$@" > /dev/null || :
        ;;
     status)
        cd $DATA