From cb9afbe6702b6a5027fc692b4477ef073fb6dfea Mon Sep 17 00:00:00 2001 From: nemoinho Date: Wed, 29 May 2024 21:29:54 +0000 Subject: [PATCH] Create directory for dotfiles on demand --- .config/dotfiles/setup-machine.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/dotfiles/setup-machine.sh b/.config/dotfiles/setup-machine.sh index 954091d..5b1a9ce 100755 --- a/.config/dotfiles/setup-machine.sh +++ b/.config/dotfiles/setup-machine.sh @@ -99,6 +99,7 @@ config='/usr/bin/git --git-dir '"$GIT_DIR"' --work-tree '"$HOME"'' if [ ! -d "$GIT_DIR" ] then GIT_REMOTE=git@gitea.nehrke.info:nemoinho/dotfiles.git + mkdir -p "$(dirname "$GIT_DIR")" git clone --separate-git-dir=$GIT_DIR $GIT_REMOTE $HOME/tmp-dotfiles rm -r ~/tmp-dotfiles else