mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
Check for bash version in vim-patch.sh
This commit is contained in:
@@ -5,6 +5,12 @@ set -u
|
|||||||
# Use privileged mode, which e.g. skips using CDPATH.
|
# Use privileged mode, which e.g. skips using CDPATH.
|
||||||
set -p
|
set -p
|
||||||
|
|
||||||
|
# Ensure that the user has a bash that supports -A
|
||||||
|
if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then
|
||||||
|
echo "Update your bash version to one that supports -A syntax (>3)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
readonly NVIM_SOURCE_DIR="${NVIM_SOURCE_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
|
readonly NVIM_SOURCE_DIR="${NVIM_SOURCE_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
|
||||||
readonly VIM_SOURCE_DIR_DEFAULT="${NVIM_SOURCE_DIR}/.vim-src"
|
readonly VIM_SOURCE_DIR_DEFAULT="${NVIM_SOURCE_DIR}/.vim-src"
|
||||||
readonly VIM_SOURCE_DIR="${VIM_SOURCE_DIR:-${VIM_SOURCE_DIR_DEFAULT}}"
|
readonly VIM_SOURCE_DIR="${VIM_SOURCE_DIR:-${VIM_SOURCE_DIR_DEFAULT}}"
|
||||||
|
Reference in New Issue
Block a user