Skip to content

Commit

Permalink
Allow testing on Bash 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Sep 23, 2024
1 parent 1c8353a commit 4e74645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

# Bash 4.3 - 5.0 because of arbitrary need to pick a single standard.
if ! [[ "${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}" =~ (4\.[^1-2]|5\.[0-1])(\.\d+)? ]]; then
if ! [[ "${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}" =~ (4\.[^1-2]|5\.[0-2])(\.\d+)? ]]; then
echo "this script requires bash 4.3, 4.4, or 5.0" >&2
exit 1
fi
Expand Down

0 comments on commit 4e74645

Please sign in to comment.