Use internal BASH_VERSINFO variable
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
938b6c8081
commit
6b0a4b55fc
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
( bash --version | grep -q 'version 4' ) || {
|
||||
[ ${BASH_VERSINFO[0]:-0} -lt 4 ] && {
|
||||
echo "Bash too old, update to >=4.0"
|
||||
exit 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue