Skip to content

Commit 4778fb2

Browse files
author
lengyuefeng
committed
fix bug of .vim directory
In the repo, there's no .vim directory, so I think the shell should create it first.
1 parent 5f5dc19 commit 4778fb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bootstrap.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ clone_vundle() {
105105
create_symlinks() {
106106
endpath="$HOME/.$app_name-3"
107107

108+
if [ ! -d "$endpath/.vim/bundle" ]; then
109+
mkdir -p "$endpath/.vim/bundle"
110+
fi
111+
108112
lnif "$endpath/.vimrc" "$HOME/.vimrc"
109113
lnif "$endpath/.vimrc.bundles" "$HOME/.vimrc.bundles"
110114
lnif "$endpath/.vimrc.before" "$HOME/.vimrc.before"
@@ -129,10 +133,6 @@ create_symlinks() {
129133
ln -sf "$endpath/.vimrc.before.fork" "$HOME/.vimrc.before.fork"
130134
fi
131135

132-
if [ ! -d "$endpath/.vim/bundle" ]; then
133-
mkdir -p "$endpath/.vim/bundle"
134-
fi
135-
136136
ret="$?"
137137
success "$1"
138138
debug

0 commit comments

Comments
 (0)