bootstrap: Use more secure temporary folder (that shit's world-readable, man)

This commit is contained in:
Salt 2018-01-04 21:18:41 -06:00
parent 0d27630851
commit 2dd1e8632e

View File

@ -1,5 +1,6 @@
#!/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
tempfolder="/tmp/dots$(uuidgen)"
git clone --recursive --separate-git-dir="$HOME/.dotfiles" git@github.com:rehashedsalt/home.git $tempfolder
rsync -rvl --exclude ".git" $tempfolder/ $HOME/
rm -r $tempfolder
git submodule update --init --recursive --git-dir="$HOME/.dotfiles" --work-tree="$HOME" $HOME/