Skip to content

Commit df65133

Browse files
pks-tgitster
authored andcommitted
ci: fix check for Ubuntu 20.04
In 5ca0c45 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ca0c45 commit df65133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ ubuntu-*)
328328
# Python 2 is end of life, and Ubuntu 23.04 and newer don't actually
329329
# have it anymore. We thus only test with Python 2 on older LTS
330330
# releases.
331-
if "$distro" = "ubuntu-20.04"
331+
if test "$distro" = "ubuntu-20.04"
332332
then
333333
PYTHON_PACKAGE=python2
334334
else

0 commit comments

Comments
 (0)