On 25/01/2019 13.39, Christian Boltz wrote:
Hello,
Am Donnerstag, 24. Januar 2019, 23:05:50 CET schrieb Carlos E. R.:
On 24/01/2019 22.46, Christian Boltz wrote:
Hint: /etc/os-release has VERSION_ID=..., not VERSION=... so you have to use $VERSION_ID, not $VERSION.
Oh. :-( I thought that the tokens in that file were fixed in Law somewhere.
I'm quite sure the format of /etc/os-release is specified somewhere - but you still have to use the correct variable ;-)
From checking a few /etc/os-release files from different openSUSE versions, it looks like - VERSION can be a "pretty name", for example VERSION="13.1 (Bottle)" - also, VERSION seems to be optional - it's commented out in Tumbleweed - VERSION_ID is the "machine readable" version and contains only the version number ("15.0" in Leap, "20190115" in Tumbleweed) - in Leap, VERSION and VERSION_ID both have only the "machine readable" version number ("15.0"), which might explain why VERSION instead of VERSION_ID was chosen in pin
Understood! I'll consider that in my scripts. Thanks :-) -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)