From 27018d9be03fb389058e6e608d6ef05738fe13ae Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 13 Jun 2022 10:14:36 +0200 Subject: [PATCH] libstd.bash: redirect output of 'which lsb_release' to /dev/null lsb_release might not be installed! --- Pmodules/libstd.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pmodules/libstd.bash b/Pmodules/libstd.bash index 3a8dae4..95e70c7 100644 --- a/Pmodules/libstd.bash +++ b/Pmodules/libstd.bash @@ -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