Skip to content

Commit 1d6e8e5

Browse files
committed
[utils/common] Compare as string instead of integer as ubuntu as a . in the version
1 parent 8a7ab06 commit 1d6e8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function required_packages() {
191191
PYTHON_VERSION="3.11"
192192
case "$DISTRO_NAME" in
193193
debian | ubuntu)
194-
[ "$DISTRO_VERSION_ID" -lt 12 ] && PYTHON_VERSION="3"
194+
[ "$DISTRO_VERSION_ID" == "11" ] && PYTHON_VERSION="3"
195195
export PYTHON_VERSION
196196
apt-get update &>>"$LOG_FILE"
197197
apt-get install --no-install-recommends -y "python${PYTHON_VERSION}" "python${PYTHON_VERSION}-dev" python3-pip "python${PYTHON_VERSION}-venv" whiptail expect jq &>>"$LOG_FILE"

0 commit comments

Comments
 (0)