From bd2a3237529fe426201ebd2597e5b881741bfaed Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 13 Jul 2020 05:17:32 +0200 Subject: [PATCH] Create directory before copying in dotfiles.sh --- dotfiles.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles.sh b/dotfiles.sh index 36230eb..68afd97 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -113,6 +113,7 @@ pull_push() { # cp /home// /[/]dotfiles/ cp -a "$HOME/$f" "$(pwd)/$f" elif [ "$1" = "push" ]; then + mkdir -p "$(dirname $HOME/$f)" cp -a "$(pwd)/$f" "$HOME/$f" fi done