fix bug of .vim directory

In the repo, there's no .vim directory, so I think the shell should
create it first.
This commit is contained in:
lengyuefeng 2013-09-14 16:28:19 +08:00
parent 5f5dc19792
commit 4778fb2ded

View File

@ -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