made lsb_release conditional on there being one.
authorChris Koeritz <fred@gruntose.com>
Fri, 20 Sep 2013 01:19:49 +0000 (20:19 -0500)
committerChris Koeritz <fred@gruntose.com>
Fri, 20 Sep 2013 01:19:49 +0000 (20:19 -0500)
scripts/core/i.sh

index 0b01bd5a172d8ef3e1f7eee9d22c5fa0ef6de9fa..dbc5c8a93c9f5652bf88eaf6c5b587dafdfb4bb7 100644 (file)
@@ -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