From 60793fe11899e90b4e43194aa255094ddd734c80 Mon Sep 17 00:00:00 2001 From: tosu Date: Mon, 27 Feb 2023 01:21:37 +0100 Subject: [PATCH] Update 'clone_dotfiles.sh' --- clone_dotfiles.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clone_dotfiles.sh b/clone_dotfiles.sh index 28a44a9..cdab823 100644 --- a/clone_dotfiles.sh +++ b/clone_dotfiles.sh @@ -1,16 +1,16 @@ # copy & paste & exec 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 cp) -r ~/dotfiles-tmp/* ~ $(type -P rm) -rf ~/dotfiles-tmp/ -$(type -P rm) -rf ~/.git # OR (for push/pull) 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 cp) -r ~/dotfiles-tmp/* ~ -$(type -P rm) -rf ~/dotfiles-tmp/ -$(type -P rm) -rf ~/.git \ No newline at end of file +$(type -P rm) -rf ~/dotfiles-tmp/ \ No newline at end of file