Add wiki mirror utility script

This commit is contained in:
Michael Miller 2020-03-28 10:48:09 -06:00
parent 1012a5f1b9
commit 0322d5bd28

11
util/mirror-wiki.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -ex
# Mirrors the contents of the GitLab wiki to GitHub.
git clone git@gitlab.com:arctic-fox/spectator.wiki.git
pushd spectator.wiki
git remote add github git@github.com:icy-arctic-fox/spectator.wiki.git
git fetch github
git push github master
popd
rm -rf spectator.wiki