Re: Get ${OSREL} at install time

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Tue, 18 Apr 2023 09:06:55 UTC
Hey,

Not really OSREL, but when I needed to know the FreeBSD version at
> install time, this is what I did:
>
>
> https://cgit.freebsd.org/ports/tree/security/unix-selfauth-helper/pkg-post-install.lua
>
> It's not exactly nice, just parsing the version manually...
>

Maybe this it what I'm looking for: check /etc/os-release and install time.
The above code is lua?
Is there a way to use shell to check os-release file?

Thanks,

-- 
Nuno Teixeira
FreeBSD Committer (ports)