mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-01 11:49:38 +02:00
libstd.bash: redirect output of 'which lsb_release' to /dev/null
lsb_release might not be installed!
This commit is contained in:
@@ -289,11 +289,11 @@ std::upvar() {
|
||||
}
|
||||
|
||||
std.get_os_release_linux() {
|
||||
local lsb_release=$(which lsb_release)
|
||||
#local lsb_release=$(which lsb_release)
|
||||
local ID=''
|
||||
local VERSION_ID=''
|
||||
|
||||
if [[ -n $(which lsb_release) ]]; then
|
||||
if [[ -n $(which lsb_release 2>/dev/null) ]]; then
|
||||
ID=$(lsb_release -is)
|
||||
VERSION_ID=$(lsb_release -rs)
|
||||
elif [[ -r '/etc/os-release' ]]; then
|
||||
|
||||
Reference in New Issue
Block a user