eepykate / fet.sh

🐢 a fetch written in posix shell without any external commands (sponsored by https://git.io/kiwmi)
https://github.com/buffet/kiwmi
ISC License
366 stars 22 forks source link

check for os-release located at /usr/lib/os-release if /etc/os-release is not found #17

Closed listout closed 4 years ago

listout commented 4 years ago

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.

eepykate commented 4 years ago

Bash code in a sh project, and this isn't the best solution.

listout commented 4 years ago

Should I use the ${variable:-word} or ${variable:=word} style. I think it's more posix complient syntax.

Sorry for being a nood.

eepykate commented 4 years ago

I implemented this the way I would do it in 5dd087585c9affbd60b29b2cfd661a01ab63a574.