summaryrefslogtreecommitdiff
path: root/git-maintenance/resume.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-maintenance/resume.sh')
-rwxr-xr-xgit-maintenance/resume.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/git-maintenance/resume.sh b/git-maintenance/resume.sh
new file mode 100755
index 0000000..38e4e0f
--- /dev/null
+++ b/git-maintenance/resume.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+echo
+echo == Enter password. ==
+echo
+PASS="pass:$(echo 53616c7465645f5f6eb8e165b79052263e125e4070138e26b3d127bb36e3e943f212d2d761a4426170cc2c17c58bc5d67c99eddb1df6ee1c02d7b33dd95ecdf0 | xxd -ps -r | openssl aes-256-cbc -salt -pbkdf2 -d)"
+ROOTDIR="$(git rev-parse --show-toplevel)"
+cd "$ROOTDIR"
+GITDIR="$ROOTDIR/.git"
+MAINTDIR="$ROOTDIR/git-maintenance"
+
+cd "$MAINTDIR"
+node bsvup/cli.js upload -f "$GITDIR"/encrypted -t dir -p "${PASS#pass:}" -v # -b