From: Chris Koeritz Date: Fri, 20 Sep 2013 01:19:49 +0000 (-0500) Subject: made lsb_release conditional on there being one. X-Git-Tag: 2.140.90~922 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=19bc15e94c5702b88f15cef0fe3ea4a6e567efc5;p=feisty_meow.git made lsb_release conditional on there being one. --- diff --git a/scripts/core/i.sh b/scripts/core/i.sh index 0b01bd5a..dbc5c8a9 100644 --- a/scripts/core/i.sh +++ b/scripts/core/i.sh @@ -8,7 +8,10 @@ echo echo Your user name is $USER on a computer named $(hostname). echo Your machine platform is $(uname -m) if [ $OPERATING_SYSTEM == "UNIX" ]; then - lsb_release -a + which lsb_release &>/dev/null + if [ $? -eq 0 ]; then + lsb_release -a + fi fi echo The time is $(date_stringer | sed -e 's/_/ /g' | sed -e 's/\([0-9][0-9]\) \([0-9][0-9]\)$/:\1:\2/') echo