diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-10-09 14:18:59 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-10-09 14:18:59 +0200 |
commit | dd0b1178bb8dd2f9ab63cdb8ac32099d8b75d661 (patch) | |
tree | 6ff6d0b9a989f8eb507b70dd599ffc8ef749ef97 /exp | |
parent | 64e858b2699f6807cf1cdd7903fe2cf33f3b0ae2 (diff) | |
download | dna-backup-dd0b1178bb8dd2f9ab63cdb8ac32099d8b75d661.tar.gz dna-backup-dd0b1178bb8dd2f9ab63cdb8ac32099d8b75d661.zip |
fix git nopack values in exp
Diffstat (limited to 'exp')
-rwxr-xr-x | exp/exp.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -57,13 +57,15 @@ do $GITC commit -m $hash &> $OUT \ || (log "error commiting to nopack"; cat $OUT; exit 1) ls $GIT_NOPACK/objects/pack + nopack_curr=$(printf "%s.versions/%05d" $GIT_NOPACK $i) find $GIT_NOPACK -type f -exec du -ba {} + \ | grep -v /logs/ \ | cut -f1 \ | paste -sd+ \ | xargs -i echo {} - $nopack_prev \ | bc \ - > $(printf "%s.versions/%05d" $GIT_NOPACK $i) + > $nopack_curr + let nopack_prev+=$(cat $nopack_curr) set-git-dir $GIT_PATH # Create dna backups for this version |