bootstrap: Use more secure temporary folder (that shit's world-readable, man)
This commit is contained in:
parent
0d27630851
commit
2dd1e8632e
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user