fix(ci): fix OS version check in Ubuntu setup script

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-12-06 13:46:49 +01:00 committed by Jakub
parent d77d049203
commit effe996239
1 changed files with 3 additions and 6 deletions

View File

@ -8,11 +8,8 @@ QT_INSTALL_DIR="/opt/qt"
function check_version { function check_version {
source /etc/os-release source /etc/os-release
[[ "${NAME}" != "Ubuntu" ]] && { echo "ERROR: This script only supports Ubuntu!"; exit 1; }
if [[ "$NAME" != "Ubuntu" ]] || ! [[ "$VERSION" =~ ^20\.04 ]]; then [[ "${VERSION_ID}" != '22.04' ]] && { echo "ERROR: Ubuntu version not 22.04!"; exit 1; }
echo "ERROR: Ubuntu version is not 20.04.4"
exit 1
fi
} }
function install_build_dependencies { function install_build_dependencies {