summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 16:39:13 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 16:39:13 -0800
commit9e14e91780a4cfd496aa09930161525b50edde42 (patch)
tree0eb98a738abbc26b58447bd9445401188458680d
parent9a5d365758f1c5bb395523a1bf99a40f9300fd6d (diff)
downloadstandingwithresilience-9e14e91780a4cfd496aa09930161525b50edde42.tar.gz
standingwithresilience-9e14e91780a4cfd496aa09930161525b50edde42.zip
testing bugs live
-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