From dd60d560a0d0f47f1c1a4227d7a753de0467df92 Mon Sep 17 00:00:00 2001 From: Krzysztof Bogacki Date: Wed, 11 Dec 2019 18:41:06 +0100 Subject: [PATCH] Fix corehost RID generation logic for versionless distros (#318) --- src/installer/corehost/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/corehost/build.sh b/src/installer/corehost/build.sh index 372be22..c1b3b45 100755 --- a/src/installer/corehost/build.sh +++ b/src/installer/corehost/build.sh @@ -25,7 +25,7 @@ init_rid_plat() # remove the last version number VERSION_ID=${VERSION_ID%.*} fi - __rid_plat="$ID.$VERSION_ID" + __rid_plat="$ID${VERSION_ID:+.$VERSION_ID}" if [[ "$ID" == "alpine" ]]; then __rid_plat="linux-musl" fi -- 2.7.4