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 {
@ -38,7 +35,7 @@ function install_release_dependencies {
function install_runtime_dependencies { function install_runtime_dependencies {
echo "Install runtime dependencies" echo "Install runtime dependencies"
# xvfb is needed in order run squish test into a headless server # xvfb is needed in order run squish test into a headless server
apt install -yq libxcomposite-dev xvfb libxft-dev \ apt install -yq libxcomposite-dev xvfb libxft-dev \
libxcb-shape0 libxcb-randr0 libxcb-render0 libxcb-icccm4 libxcb-image0 \ libxcb-shape0 libxcb-randr0 libxcb-render0 libxcb-icccm4 libxcb-image0 \
libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0