Skip to content

Commit 0f606d2

Browse files
authored
Set minimum bash version to 4.4.0 (#3873)
1 parent 4666d44 commit 0f606d2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

install/_min-requirements.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ MIN_COMPOSE_VERSION='2.32.2'
55
MIN_PODMAN_VERSION='4.9.3'
66
MIN_PODMAN_COMPOSE_VERSION='1.3.0'
77

8+
MIN_BASH_VERSION='4.4.0'
9+
810
# 16 GB minimum host RAM, but there'll be some overhead outside of what
911
# can be allotted to docker
1012
if [[ "$COMPOSE_PROFILES" == "errors-only" ]]; then

install/check-minimum-requirements.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ if [[ ! "$SKIP_SSE42_REQUIREMENTS" -eq 1 && "$IS_KVM" -eq 0 && "$DOCKER_ARCH" =
5454
fi
5555
fi
5656

57+
if ! vergte "${BASH_VERSION}" "${MIN_BASH_VERSION}"; then
58+
echo "FAIL: Expected minimum bash version to be ${MIN_BASH_VERSION} but found ${BASH_VERSION}"
59+
exit 1
60+
fi
61+
5762
echo "${_endgroup}"

0 commit comments

Comments
 (0)