Bootstrap: Add replication script

Hopefully this shit works. It's completely untested
This commit is contained in:
Salt 2017-12-26 18:08:27 -06:00
parent 3cc9a2c463
commit 92c53a5db9

5
.bin/bootstrap/replicate.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
git clone --recursive --separate-git-dir="$HOME/.dotfiles" git@github.com:rehashedsalt/home.git /tmp/dots
rsync -rvl --exclude ".git" /tmp/dots/ $HOME/
rm -r /tmp/dots
git submodule update --init --recursive --git-dir="$HOME/.dotfiles" --work-tree="$HOME" $HOME/