Make $HOME safer

This commit is contained in:
tosu 2023-03-10 17:57:44 +01:00
parent 60793fe118
commit baae3f63fe
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
builtin shopt -s dotglob
$(type -P rm) -rf ~/.dotfiles
$(type -P rm) -rf ~/.git
$(type -P git) clone --separate-git-dir=$HOME/.dotfiles https://git.timo.one/tosu/dotfiles.git $HOME/dotfiles-tmp
$(type -P git) clone --separate-git-dir="${HOME}"/.dotfiles https://git.timo.one/tosu/dotfiles.git "${HOME}"/dotfiles-tmp
$(type -P cp) -r ~/dotfiles-tmp/* ~
$(type -P rm) -rf ~/dotfiles-tmp/
@ -11,6 +11,6 @@ $(type -P rm) -rf ~/dotfiles-tmp/
builtin shopt -s dotglob
$(type -P rm) -rf ~/.dotfiles
$(type -P rm) -rf ~/.git
$(type -P git) clone --separate-git-dir=$HOME/.dotfiles gt:tosu/dotfiles $HOME/dotfiles-tmp
$(type -P git) clone --separate-git-dir="${HOME}"/.dotfiles gt:tosu/dotfiles "${HOME}"/dotfiles-tmp
$(type -P cp) -r ~/dotfiles-tmp/* ~
$(type -P rm) -rf ~/dotfiles-tmp/