mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Hide errors when lsb_release
is not installed.
This commit is contained in:
parent
b66bc75d5f
commit
7c853ec2c1
1 changed files with 2 additions and 2 deletions
|
@ -376,8 +376,8 @@ __gather_linux_system_info() {
|
|||
DISTRO_VERSION=""
|
||||
|
||||
# Let's test if the lsb_release binary is available
|
||||
rv=$(lsb_release 2>&1)
|
||||
if [ "x${rv}" != "x" ]; then
|
||||
rv=$(lsb_release >/dev/null 2>&1)
|
||||
if [ $? -eq 0 ]; then
|
||||
DISTRO_NAME=$(lsb_release -si)
|
||||
rv=$(lsb_release -sr)
|
||||
[ "${rv}x" != "x" ] && DISTRO_VERSION=$(__parse_version_string "$rv")
|
||||
|
|
Loading…
Add table
Reference in a new issue