setup-ubuntu.sh: fix when missing lsb_release

This commit is contained in:
Lucy Phipps 2021-10-05 16:26:06 +01:00
parent 01884730e4
commit f73a3fb45f
No known key found for this signature in database
GPG Key ID: 8F688A3DB7869BFE

View File

@ -212,7 +212,7 @@ fi
$SUDO dpkg --add-architecture i386
# Newer Python versions for host builds
if dpkg --compare-versions $(lsb_release -rs) lt 21.04; then
if dpkg --compare-versions $(lsb_release -rs || echo 0) lt 21.04; then
$SUDO add-apt-repository -y ppa:deadsnakes/ppa
fi