mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
change minimum bash version to 4.2
This commit is contained in:
parent
0bf274d471
commit
bb150cdd4f
@ -734,8 +734,8 @@ function kube::util::ensure_dockerized {
|
|||||||
#
|
#
|
||||||
function kube::util::ensure-bash-version {
|
function kube::util::ensure-bash-version {
|
||||||
# shellcheck disable=SC2004
|
# shellcheck disable=SC2004
|
||||||
if ((${BASH_VERSINFO[0]}<5)); then
|
if ((${BASH_VERSINFO[0]}<4)) || ( ((${BASH_VERSINFO[0]}==4)) && ((${BASH_VERSINFO[1]}<2)) ); then
|
||||||
echo "ERROR: This script requires a minimum bash version of 5.0"
|
echo "ERROR: This script requires a minimum bash version of 4.2, but got version of ${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user