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