realy, dont fail if lsb_release does not exist

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-31 16:20:48 +01:00
parent d4aa04f35d
commit 5ac857a87c
4 changed files with 4 additions and 0 deletions

View file

@ -19,6 +19,7 @@
# #
# #
set +e
lsb_release=$(which lsb_release 2>/dev/null) lsb_release=$(which lsb_release 2>/dev/null)
if [ -x "$lsb_release" ]; then if [ -x "$lsb_release" ]; then
$lsb_release --short --codename $lsb_release --short --codename

View file

@ -19,6 +19,7 @@
# #
# #
set +e
lsb_release=$(which lsb_release 2>/dev/null) lsb_release=$(which lsb_release 2>/dev/null)
if [ -x "$lsb_release" ]; then if [ -x "$lsb_release" ]; then
$lsb_release --short --description $lsb_release --short --description

View file

@ -19,6 +19,7 @@
# #
# #
set +e
lsb_release=$(which lsb_release 2>/dev/null) lsb_release=$(which lsb_release 2>/dev/null)
if [ -x "$lsb_release" ]; then if [ -x "$lsb_release" ]; then
$lsb_release --short --id $lsb_release --short --id

View file

@ -19,6 +19,7 @@
# #
# #
set +e
lsb_release=$(which lsb_release 2>/dev/null) lsb_release=$(which lsb_release 2>/dev/null)
if [ -x "$lsb_release" ]; then if [ -x "$lsb_release" ]; then
$lsb_release --short --release $lsb_release --short --release