forked from ungleich-public/cdist
dont fail if lsb_release does not exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
de84542579
commit
d4aa04f35d
4 changed files with 16 additions and 8 deletions
|
@ -19,5 +19,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
lsb_release=$(which lsb_release)
|
lsb_release=$(which lsb_release 2>/dev/null)
|
||||||
[ -x $lsb_release ] && $lsb_release --short --codename
|
if [ -x "$lsb_release" ]; then
|
||||||
|
$lsb_release --short --codename
|
||||||
|
fi
|
||||||
|
|
|
@ -19,5 +19,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
lsb_release=$(which lsb_release)
|
lsb_release=$(which lsb_release 2>/dev/null)
|
||||||
[ -x $lsb_release ] && $lsb_release --short --description
|
if [ -x "$lsb_release" ]; then
|
||||||
|
$lsb_release --short --description
|
||||||
|
fi
|
||||||
|
|
|
@ -19,5 +19,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
lsb_release=$(which lsb_release)
|
lsb_release=$(which lsb_release 2>/dev/null)
|
||||||
[ -x $lsb_release ] && $lsb_release --short --id
|
if [ -x "$lsb_release" ]; then
|
||||||
|
$lsb_release --short --id
|
||||||
|
fi
|
||||||
|
|
|
@ -19,5 +19,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
lsb_release=$(which lsb_release)
|
lsb_release=$(which lsb_release 2>/dev/null)
|
||||||
[ -x $lsb_release ] && $lsb_release --short --release
|
if [ -x "$lsb_release" ]; then
|
||||||
|
$lsb_release --short --release
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue