mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
Simplify a bit more bash detection.
This commit is contained in:
parent
60b7c724bd
commit
d285ebb248
4
configure
vendored
4
configure
vendored
@ -123,8 +123,8 @@ fi
|
||||
|
||||
# Check bash is present, and at least version 3.0
|
||||
[ -x /bin/bash ] || do_error "bash 3.0 or above was not found in /bin/bash"
|
||||
bash_version=$(/bin/bash --version |sed -r -e '2,$d' -e 's/.* version ([[:digit:]]+).*/\1/;')
|
||||
bash_major=${bash_version%%.*}
|
||||
bash_version=$(/bin/bash -c 'echo ${BASH_VERSION}')
|
||||
bash_major=$(/bin/bash -c 'echo ${BASH_VERSINFO[0]}')
|
||||
[ ${bash_major} -ge 3 ] || do_error "bash 3.0 or above is needed (found ${bash_version})"
|
||||
|
||||
sed -r -e "s,@@BINDIR@@,${BINDIR},g;" \
|
||||
|
Loading…
Reference in New Issue
Block a user