Closed listout closed 4 years ago
Bash code in a sh project, and this isn't the best solution.
Should I use the ${variable:-word}
or ${variable:=word}
style. I think it's more posix complient syntax.
Sorry for being a nood.
I implemented this the way I would do it in 5dd087585c9affbd60b29b2cfd661a01ab63a574.
Some distros have the
os-release
located at the/usr/lib/os-release
; stating from freedesktop.org.So adding an if statement pointing
/usr/lib/os-release
if/etc/os-release
is not found.