diff --git a/bootstrap/replicate.sh b/bootstrap/replicate.sh index 94d5538..d3461ac 100755 --- a/bootstrap/replicate.sh +++ b/bootstrap/replicate.sh @@ -1,6 +1,8 @@ -#!/usr/bin/env bash -tempfolder="/tmp/dots$(uuidgen)" -git clone --recursive --separate-git-dir="$HOME/.dotfiles" https://github.com/rehashedsalt/home.git $tempfolder +#!/bin/sh +tempfolder="/tmp/dots`uuidgen`" +gitdir="$HOME/.dotfiles" +git clone --recursive --separate-git-dir="$gitdir" https://github.com/rehashedsalt/home.git $tempfolder rsync -rvl --exclude ".git" $tempfolder/ $HOME/ rm -r $tempfolder -git submodule update --init --recursive --remote --git-dir="$HOME/.dotfiles" --work-tree="$HOME" $HOME/ +git submodule update --init --recursive --remote --git-dir="$gitdir" --work-tree="$HOME" $HOME/ +git config --git-dir="$gitdir" status.showUntrackedFiles no