mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
Apply suggestions from code review
Improve error message for unsupported bash version, use double square bracket operator Co-Authored-By: Daniel Hahler <github@thequod.de>
This commit is contained in:
parent
d26a66a2b3
commit
f47e574c87
@ -6,8 +6,8 @@ set -u
|
||||
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)"
|
||||
if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then
|
||||
echo "This script requires bash version 3 or later (you have ${BASH_VERSION})." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user