From 92c53a5db9a63ea171b48338ecc86c8274a22ee2 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 26 Dec 2017 18:08:27 -0600 Subject: [PATCH] Bootstrap: Add replication script Hopefully this shit works. It's completely untested --- .bin/bootstrap/replicate.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 .bin/bootstrap/replicate.sh diff --git a/.bin/bootstrap/replicate.sh b/.bin/bootstrap/replicate.sh new file mode 100755 index 00000000..2b7c7672 --- /dev/null +++ b/.bin/bootstrap/replicate.sh @@ -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/