From baae3f63fede75456153d4564d1b5d0f67f4d45c Mon Sep 17 00:00:00 2001 From: tosu Date: Fri, 10 Mar 2023 17:57:44 +0100 Subject: [PATCH] Make $HOME safer --- clone_dotfiles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clone_dotfiles.sh b/clone_dotfiles.sh index cdab823..482664d 100644 --- a/clone_dotfiles.sh +++ b/clone_dotfiles.sh @@ -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/ \ No newline at end of file