Added version check for bash version gteq 4 (#292)
* Added version check for bash version gteq 4
* Added entry to CHANGELOG for bash 4.0 configure script dependency
* Corrected changelog entry to right format
* Fixed link in changelog entry
* Remove uneeded new line.
commit292d2dc639368e2f969132e11b03b0ec05498cb2
authorJohannes-Maria Frank <jmfrank63@gmail.com>
dateMon 28 Oct 2019, 16:39 (7 years ago)
parent572654a
CHANGELOG.md+1−1
@@ -1,7 +1,7 @@
11# Vx.x.x (Pre-release)
22
33## Changes since v4.0.0
4−
4+- [#291][https://github.com/pusher/oauth2_proxy/pull/291] Added bash >= 4.0 dependency to configure script (@jmfrank63)
55- [#227](https://github.com/pusher/oauth2_proxy/pull/227) Add Keycloak provider (@Ofinka)
66- [#259](https://github.com/pusher/oauth2_proxy/pull/259) Redirect to HTTPS (@jmickey)
77- [#273](https://github.com/pusher/oauth2_proxy/pull/273) Support Go 1.13 (@dio)
configure+4
@@ -5,6 +5,10 @@ GREEN='\033[0;32m'
55BLUE='\033[0;34m'
66NC='\033[0m'
77
8+if [ -z "${BASH_VERSINFO}" ] || [ -z "${BASH_VERSINFO[0]}" ] || [ ${BASH_VERSINFO[0]} -lt 4 ]; then
9+ echo "This script requires Bash version >= 4"; exit 1;
10+fi
11+
812declare -A tools=()
913declare -A desired=()
1014