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