ci: fix check for Ubuntu 20.04
commitdf651330ab947d6a950c9cf9a976b56b07d6c2be
authorPatrick Steinhardt <ps@pks.im>
Thu, 6 Jun 2024 09:31:40 +0000 (6 11:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2024 16:59:27 +0000 (6 09:59 -0700)
treee783bc16dafaf8ab959224b7e7d1e12c00ececd4
parent5ca0c455f1d020156dc352a209fb1a3a6e548e3d
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>
ci/lib.sh