dont fail if lsb_release does not exist

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/feature_files_export
Steven Armstrong 13 years ago
parent de84542579
commit d4aa04f35d
  1. 6
      conf/explorer/lsb_codename
  2. 6
      conf/explorer/lsb_description
  3. 6
      conf/explorer/lsb_id
  4. 6
      conf/explorer/lsb_release

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

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

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

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

Loading…
Cancel
Save