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
|
#!/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/
|
||||||
|
Loading…
Reference in New Issue
Block a user