summaryrefslogtreecommitdiff
path: root/git-maintenance/store.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-maintenance/store.sh')
-rwxr-xr-xgit-maintenance/store.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-maintenance/store.sh b/git-maintenance/store.sh
index 03b324d..01ab4b2 100755
--- a/git-maintenance/store.sh
+++ b/git-maintenance/store.sh
@@ -42,12 +42,12 @@ do
openssl aes-256-cbc -salt -pbkdf2 -pass "file:$PASS" -e -in "$tmpfile" -out "$tmpfile".aes
fn="$({ cat "$tmpfile"; echo -n "$PASS"; } | sha256sum | cut -f 1 -d ' ')".aes
mv "$tmpfile".aes "$GITDIR"/encrypted/"$fn"
- if [ "$(curl -s "$URLPFX"/"$fn" | sha256sum)" = "$(cat "$GITDIR"/encrypted/"$fn" | sha256sum)" ]; then mv "$GITDIR"/encrypted/"$fn" "$GITDIR"/encrypted.bak; fi
+ if [ "$(curl "$URLPFX"/"$fn" | sha256sum)" = "$(cat "$GITDIR"/encrypted/"$fn" | sha256sum)" ]; then mv -v "$GITDIR"/encrypted/"$fn" "$GITDIR"/encrypted.bak; fi
echo "$fn" >> "$tmpfile".list
done
rm "$tmpfile"
mv "$tmpfile".list "$GITDIR"/encrypted/list.txt
-$TAR -cv ""$GITDIR"/encrypted/list.txt" ""$GITDIR"/refs" ""$GITDIR"/HEAD" ""$GITDIR"/packed-refs" | openssl aes-256-cbc -salt -pbkdf2 -pass "file:$PASS" -e -out ."$GITDIR"/encrypted/refs.aes
+$TAR -cv "$GITDIR"/encrypted/list.txt "$GITDIR"/refs "$GITDIR"/HEAD "$GITDIR"/packed-refs | openssl aes-256-cbc -salt -pbkdf2 -pass "file:$PASS" -e -out "$GITDIR"/encrypted/refs.aes
rm "$GITDIR"/encrypted/list.txt
cp -va "$MAINTDIR"/get.sh "$GITDIR"/encrypted
if [ "$(curl -s "$URLPFX"/get.sh | sha256sum)" = "$(cat "$GITDIR"/encrypted/get.sh | sha256sum)" ]; then rm "$GITDIR"/encrypted/get.sh; fi