Skip to content

Commit 2030f7e

Browse files
committed
Merge pull request spf13#543 from matlads/3.0
allow git_uri and vundle_uri to be set in ENV for bootstrap.sh
2 parents b44573e + 8114441 commit 2030f7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bootstrap.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/env bash
22
############################ SETUP PARAMETERS
33
app_name='spf13-vim'
4-
git_uri='https://github.com/spf13/spf13-vim.git'
4+
[ -z "$git_uri" ] && git_uri='https://github.com/spf13/spf13-vim.git'
55
git_branch='3.0'
66
debug_mode='0'
77
fork_maintainer='0'
8+
[ -z "$VUNDLE_URI" ] && VUNDLE_URI="https://github.com/gmarik/vundle.git"
89

910
############################ BASIC SETUP TOOLS
1011
msg() {
@@ -93,7 +94,7 @@ clone_repo() {
9394

9495
clone_vundle() {
9596
if [ ! -e "$HOME/.vim/bundle/vundle" ]; then
96-
git clone https://github.com/gmarik/vundle.git "$HOME/.vim/bundle/vundle"
97+
git clone $VUNDLE_URI "$HOME/.vim/bundle/vundle"
9798
else
9899
upgrade_repo "vundle" "Successfully updated vundle"
99100
fi

0 commit comments

Comments
 (0)