From dd0b1178bb8dd2f9ab63cdb8ac32099d8b75d661 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Sat, 9 Oct 2021 14:18:59 +0200 Subject: fix git nopack values in exp --- exp/exp.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3