From 36f17ce87ec9c382beb6af033b7f06fe2cd2c416 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 8 Jan 2016 19:12:36 -0500 Subject: [PATCH] vim-patch.sh: fix regression --- scripts/vim-patch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 1f6c787b24..c0934a17e3 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -38,16 +38,17 @@ check_executable() { get_vim_sources() { check_executable git - cd "${VIM_SOURCE_DIR}" if [[ ! -d ${VIM_SOURCE_DIR} ]]; then echo "Cloning Vim sources into '${VIM_SOURCE_DIR}'." git clone --depth=1000 https://github.com/vim/vim.git "${VIM_SOURCE_DIR}" + cd "${VIM_SOURCE_DIR}" else if [[ ! -d "${VIM_SOURCE_DIR}/.git" ]]; then echo "✘ ${VIM_SOURCE_DIR} does not appear to be a git repository." echo " Please remove it and try again." exit 1 fi + cd "${VIM_SOURCE_DIR}" echo "Updating Vim sources in '${VIM_SOURCE_DIR}'." git pull && echo "✔ Updated Vim sources." ||