fix(ci): fix OS version check in Ubuntu setup script
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d77d049203
commit
effe996239
|
@ -8,11 +8,8 @@ QT_INSTALL_DIR="/opt/qt"
|
|||
|
||||
function check_version {
|
||||
source /etc/os-release
|
||||
|
||||
if [[ "$NAME" != "Ubuntu" ]] || ! [[ "$VERSION" =~ ^20\.04 ]]; then
|
||||
echo "ERROR: Ubuntu version is not 20.04.4"
|
||||
exit 1
|
||||
fi
|
||||
[[ "${NAME}" != "Ubuntu" ]] && { echo "ERROR: This script only supports Ubuntu!"; exit 1; }
|
||||
[[ "${VERSION_ID}" != '22.04' ]] && { echo "ERROR: Ubuntu version not 22.04!"; exit 1; }
|
||||
}
|
||||
|
||||
function install_build_dependencies {
|
||||
|
|
Loading…
Reference in New Issue