Skip to content

Commit dd60d56

Browse files
Saancreedericstj
authored andcommitted
Fix corehost RID generation logic for versionless distros (dotnet#318)
1 parent a6ce904 commit dd60d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/installer/corehost/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ init_rid_plat()
2525
# remove the last version number
2626
VERSION_ID=${VERSION_ID%.*}
2727
fi
28-
__rid_plat="$ID.$VERSION_ID"
28+
__rid_plat="$ID${VERSION_ID:+.$VERSION_ID}"
2929
if [[ "$ID" == "alpine" ]]; then
3030
__rid_plat="linux-musl"
3131
fi

0 commit comments

Comments
 (0)