mirror of
https://github.com/rcaloras/bash-preexec.git
synced 2026-11-03 22:49:41 -09:00
Fix the test for the Bash version for shellcheck (#142)
* Fix the test for the Bash version for shellcheck * Add parenthesis and whitespace for clarity --------- Co-authored-by: Michael Diamond <dimo414@gmail.com>
This commit is contained in:
parent
7ad48e14d3
commit
fb23d474b3
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ fi
|
|||
|
||||
# We only support Bash 3.1+.
|
||||
# Note: BASH_VERSINFO is first available in Bash-2.0.
|
||||
if [[ -z "${BASH_VERSINFO-}" || BASH_VERSINFO[0] -lt 3 || BASH_VERSINFO[0] -eq 3 && BASH_VERSINFO[1] -lt 1 ]]; then
|
||||
if [[ -z "${BASH_VERSINFO-}" ]] || (( BASH_VERSINFO[0] < 3 || (BASH_VERSINFO[0] == 3 && BASH_VERSINFO[1] < 1) )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue