aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-06-06 11:31:40 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-06 09:59:27 -0700
commitdf651330ab947d6a950c9cf9a976b56b07d6c2be (patch)
treee783bc16dafaf8ab959224b7e7d1e12c00ececd4
parent5ca0c455f1d020156dc352a209fb1a3a6e548e3d (diff)
downloadgit-df651330ab947d6a950c9cf9a976b56b07d6c2be.tar.gz
ci: fix check for Ubuntu 20.04
In 5ca0c455f1 (ci: fix Python dependency on Ubuntu 24.04, 2024-05-06), we made the use of Python 2 conditional on whether or not the CI job runs Ubuntu 20.04. There was a brown-paper-bag-style bug though, where the condition forgot to invoke the `test` builtin. The result of it is that the check always fails, and thus all of our jobs run with Python 3 by accident. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xci/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/lib.sh b/ci/lib.sh
index 3856c0066b..ff66ad356b 100755
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -328,7 +328,7 @@ ubuntu-*)
# Python 2 is end of life, and Ubuntu 23.04 and newer don't actually
# have it anymore. We thus only test with Python 2 on older LTS
# releases.
- if "$distro" = "ubuntu-20.04"
+ if test "$distro" = "ubuntu-20.04"
then
PYTHON_PACKAGE=python2
else