From 4778fb2dedb448bac851bdfcf48e9864e159c350 Mon Sep 17 00:00:00 2001 From: lengyuefeng Date: Sat, 14 Sep 2013 16:28:19 +0800 Subject: [PATCH] fix bug of .vim directory In the repo, there's no .vim directory, so I think the shell should create it first. --- bootstrap.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index a43e6f4..70837b1 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -105,6 +105,10 @@ clone_vundle() { create_symlinks() { endpath="$HOME/.$app_name-3" + if [ ! -d "$endpath/.vim/bundle" ]; then + mkdir -p "$endpath/.vim/bundle" + fi + lnif "$endpath/.vimrc" "$HOME/.vimrc" lnif "$endpath/.vimrc.bundles" "$HOME/.vimrc.bundles" lnif "$endpath/.vimrc.before" "$HOME/.vimrc.before" @@ -129,10 +133,6 @@ create_symlinks() { ln -sf "$endpath/.vimrc.before.fork" "$HOME/.vimrc.before.fork" fi - if [ ! -d "$endpath/.vim/bundle" ]; then - mkdir -p "$endpath/.vim/bundle" - fi - ret="$?" success "$1" debug