replicate.sh: Make POSIX, hide untracked files
This commit is contained in:
parent
3f26c0452f
commit
422d0f2994
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
tempfolder="/tmp/dots$(uuidgen)"
|
tempfolder="/tmp/dots`uuidgen`"
|
||||||
git clone --recursive --separate-git-dir="$HOME/.dotfiles" https://github.com/rehashedsalt/home.git $tempfolder
|
gitdir="$HOME/.dotfiles"
|
||||||
|
git clone --recursive --separate-git-dir="$gitdir" https://github.com/rehashedsalt/home.git $tempfolder
|
||||||
rsync -rvl --exclude ".git" $tempfolder/ $HOME/
|
rsync -rvl --exclude ".git" $tempfolder/ $HOME/
|
||||||
rm -r $tempfolder
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user