From: Michal Sojka Date: Fri, 27 Jul 2018 12:23:52 +0000 (+0200) Subject: Fix saving of data when no previous state is present X-Git-Tag: debian/20180727a~1 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/duhome.git/commitdiff_plain/18a1b73201aa0752c4dcec05fd48b2fdaab79bd2?hp=c1a23aa95c7733fa1eba707b4611dc013e8078b7 Fix saving of data when no previous state is present --- diff --git a/duhome b/duhome index 09e8ff3..fce4328 100755 --- a/duhome +++ b/duhome @@ -12,7 +12,7 @@ case "$1" in ;; save) cd $DATA - git rm '*' # Remove old data - perhaps, some homes were removed + git rm --force --quiet '*' # Remove old data - perhaps, some homes were removed for i in /home/*; do du -shx $i | cut -f1 > ${i#/home/}; git add ${i#/home/}