From 783f125003766c11e45589c3873fc5ed53b06d48 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 14 May 2021 14:11:35 -0700 Subject: [PATCH] scripts: use codenames for ubuntu, since that's what our repo uses. Signed-off-by: David Anderson --- scripts/installer.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 488690873..3b1a460d8 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -33,7 +33,7 @@ main() { case "$ID" in ubuntu) OS="$ID" - VERSION="$VERSION_ID" + VERSION="$VERSION_CODENAME" PACKAGETYPE="apt" ;; debian) @@ -157,12 +157,12 @@ main() { OS_UNSUPPORTED= case "$OS" in ubuntu) - if [ "$VERSION" != "16.04" ] && \ - [ "$VERSION" != "18.04" ] && \ - [ "$VERSION" != "19.10" ] && \ - [ "$VERSION" != "20.04" ] && \ - [ "$VERSION" != "20.10" ] && \ - [ "$VERSION" != "21.04" ] + if [ "$VERSION" != "xenial" ] && \ + [ "$VERSION" != "bionic" ] && \ + [ "$VERSION" != "eoan" ] && \ + [ "$VERSION" != "focal" ] && \ + [ "$VERSION" != "groovy" ] && \ + [ "$VERSION" != "hirsute" ] then OS_UNSUPPORTED=1 fi