File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# ########################### SETUP PARAMETERS
3
3
app_name=' spf13-vim'
4
+ app_dir=" $HOME /.spf13-vim-3"
4
5
[ -z " $git_uri " ] && git_uri=' https://github.com/spf13/spf13-vim.git'
5
6
git_branch=' 3.0'
6
7
debug_mode=' 0'
@@ -64,7 +65,7 @@ upgrade_repo() {
64
65
msg " trying to update $1 "
65
66
66
67
if [ " $1 " = " $app_name " ]; then
67
- cd " $HOME /. $app_name -3 " &&
68
+ cd " $app_dir " &&
68
69
git pull origin " $git_branch "
69
70
fi
70
71
@@ -80,10 +81,9 @@ upgrade_repo() {
80
81
81
82
clone_repo () {
82
83
program_exists " git" " Sorry, we cannot continue without GIT, please install it first."
83
- endpath=" $HOME /.$app_name -3"
84
84
85
- if [ ! -e " $endpath /.git " ]; then
86
- git clone --recursive -b " $git_branch " " $git_uri " " $endpath "
85
+ if [ ! -e " $app_dir " ]; then
86
+ git clone --recursive -b " $git_branch " " $git_uri " " $app_dir "
87
87
ret=" $? "
88
88
success " $1 "
89
89
debug
@@ -104,7 +104,7 @@ clone_vundle() {
104
104
}
105
105
106
106
create_symlinks () {
107
- endpath=" $HOME /. $app_name -3 "
107
+ endpath=" $app_dir "
108
108
109
109
if [ ! -d " $endpath /.vim/bundle" ]; then
110
110
mkdir -p " $endpath /.vim/bundle"
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
- endpath =" $HOME /.spf13-vim-3"
3
+ app_dir =" $HOME /.spf13-vim-3"
4
4
5
5
warn () {
6
6
echo " $1 " >&2
@@ -15,4 +15,4 @@ rm $HOME/.vimrc
15
15
rm $HOME /.vimrc.bundles
16
16
rm $HOME /.vim
17
17
18
- rm -rf $endpath
18
+ rm -rf $app_dir
You can’t perform that action at this time.
0 commit comments