diff options
Diffstat (limited to 'git-maintenance/get.sh')
-rwxr-xr-x | git-maintenance/get.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/git-maintenance/get.sh b/git-maintenance/get.sh index e131f18..d980d98 100755 --- a/git-maintenance/get.sh +++ b/git-maintenance/get.sh @@ -43,7 +43,12 @@ openssl aes-256-cbc -salt -pbkdf2 -pass "file:$PASS" -d -in encrypted/refs.aes | for encpack in $(<encrypted/list.txt) do - wget "$URLPFX"/"$encpack" -O encrypted/"$encpack" + while ! curl -sfI "$URLPFX"/"$encpack"?"$NONCE" + do + sleep 1; + NONCE="$(date +%s)" + done + wget "$URLPFX"/"$encpack"?"$NONCE" -O encrypted/"$encpack" openssl aes-256-cbc -salt -pbkdf2 -pass "file:$PASS" -d -in encrypted/"$encpack" | tar -Jxvf - done |