aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-09 14:18:59 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-09 14:18:59 +0200
commitdd0b1178bb8dd2f9ab63cdb8ac32099d8b75d661 (patch)
tree6ff6d0b9a989f8eb507b70dd599ffc8ef749ef97 /exp/exp.sh
parent64e858b2699f6807cf1cdd7903fe2cf33f3b0ae2 (diff)
downloaddna-backup-dd0b1178bb8dd2f9ab63cdb8ac32099d8b75d661.tar.gz
dna-backup-dd0b1178bb8dd2f9ab63cdb8ac32099d8b75d661.zip
fix git nopack values in exp
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-xexp/exp.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/exp/exp.sh b/exp/exp.sh
index 3a32f8f..49f429b 100755
--- a/exp/exp.sh
+++ b/exp/exp.sh
@@ -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