]> rtime.felk.cvut.cz Git - sojka/duhome.git/commitdiff
Fix saving of data when no previous state is present
authorMichal Sojka <michal.sojka@cvut.cz>
Fri, 27 Jul 2018 12:23:52 +0000 (14:23 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Fri, 27 Jul 2018 12:23:52 +0000 (14:23 +0200)
duhome

diff --git a/duhome b/duhome
index 09e8ff3d5a7c1270d679d279854ef13782561f44..fce4328d0a18c8055ca829e5397c859c1c316eaa 100755 (executable)
--- 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/}