Fix generation of RID on distros that do not set VERSION_ID (#25034)
authorLeandro A. F. Pereira <leandro.pereira@microsoft.com>
Sat, 22 Jun 2019 08:52:48 +0000 (01:52 -0700)
committerJan Kotas <jkotas@microsoft.com>
Sat, 22 Jun 2019 08:52:48 +0000 (01:52 -0700)
commit268e1e138732b7bec8f9b89c624dee75c68a7028
tree68675823ae111ca4c106b5f92abd670675741349
parentf55135711f21c7c60ebaf9653e7d97486085a649
Fix generation of RID on distros that do not set VERSION_ID (#25034)

Rolling-release distros do not set this variable, leading to invalid
RIDs such as "gentoo.-x64", which causes build failures.

Omit VERSION_ID (and the period preceding it) when unset, so it's
consistent with host and PlatformAbstractions.

Fixes #19769.
init-distro-rid.sh