replicate.sh: Finally fix the damn submodule update process

This commit is contained in:
Salt 2018-08-12 18:31:34 -05:00
parent 950c2240c4
commit f1b69f646b

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
tempfolder="/tmp/dots`uuidgen`" tempfolder="/tmp/dots"
gitdir="$HOME/.dotfiles" gitdir="$HOME/.dotfiles"
git clone --recursive --separate-git-dir="$gitdir" git@gitlab.com:rehashedsalt/home.git $tempfolder git clone --recursive --separate-git-dir="$gitdir" git@gitlab.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="$gitdir" --work-tree="$HOME" $HOME/ git --git-dir="$gitdir" --work-tree="$HOME" submodule update --init --recursive --remote
git config --git-dir="$gitdir" status.showUntrackedFiles no git --git-dir="$gitdir" --work-tree="$HOME" status.showUntrackedFiles no