projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55dbc70
)
made lsb_release conditional on there being one.
author
Chris Koeritz
<fred@gruntose.com>
Fri, 20 Sep 2013 01:19:49 +0000
(20:19 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Fri, 20 Sep 2013 01:19:49 +0000
(20:19 -0500)
scripts/core/i.sh
patch
|
blob
|
history
diff --git
a/scripts/core/i.sh
b/scripts/core/i.sh
index 0b01bd5a172d8ef3e1f7eee9d22c5fa0ef6de9fa..dbc5c8a93c9f5652bf88eaf6c5b587dafdfb4bb7 100644
(file)
--- 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