mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +00: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:
@@ -6,8 +6,8 @@ set -u
|
|||||||
set -p
|
set -p
|
||||||
|
|
||||||
# Ensure that the user has a bash that supports -A
|
# Ensure that the user has a bash that supports -A
|
||||||
if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then
|
if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then
|
||||||
echo "Update your bash version to one that supports -A syntax (>3)"
|
echo "This script requires bash version 3 or later (you have ${BASH_VERSION})." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user