Mailinglist Archive: opensuse-support (220 mails)

< Previous Next >
Re: [opensuse-support] Broken "pin" command in 15.0
On 24/01/2019 01.54, Christian Boltz wrote:
Hello,

cer@Telcontar:~> grep VERSION_ID /etc/os-release
VERSION_ID="15.0"
cer@Telcontar:~> grep VERSION_ID /etc/os-release | cut -f3 -d "\""

That's an obvious bug, and my usual recommendation would be to open a
bugreport.

However, this smelled like a small issue, so I decided to simply fix it.

Well, as usual if I touch something, it explodes ;-) and in the end, I
did 3 fixes instead of one - see my comment in boo#1095723 for details.

I'm curious.

Why not source the "/etc/os-release" file? Something like

. /etc/os-release

Then just use $VERSION


--
Cheers / Saludos,

Carlos E. R.
(from 15.0 x86_64 at Telcontar)

< Previous Next >
Follow Ups