mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 07:27:11 +00:00
embed the error message directly in program_exists
This commit is contained in:
parent
979cbb8137
commit
9e954dbe8e
@ -51,7 +51,7 @@ program_exists() {
|
||||
|
||||
# throw error on non-zero return value
|
||||
if [ ! "$ret" -eq '0' ]; then
|
||||
error "$2"
|
||||
error "You must have '$1' installed to continue."
|
||||
fi
|
||||
}
|
||||
|
||||
@ -158,8 +158,8 @@ setup_vundle() {
|
||||
|
||||
############################ MAIN()
|
||||
variable_set "$HOME"
|
||||
program_exists "vim" "To install $app_name you first need to install Vim."
|
||||
program_exists "git" "To install $app_name you first need to install Git."
|
||||
program_exists "vim"
|
||||
program_exists "git"
|
||||
|
||||
do_backup "Your old vim stuff has a suffix now and looks like .vim.`date +%Y%m%d%S`" \
|
||||
"$HOME/.vim" \
|
||||
|
Loading…
Reference in New Issue
Block a user