projects
/
dotfiles-public.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebe05f9
)
Oops, grep returns 0 when it finds a match. Update .bashrc.d/01detect_system accordi...
author
W. Trevor King
<wking@drexel.edu>
Wed, 30 Nov 2011 21:04:16 +0000
(16:04 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Wed, 30 Nov 2011 21:04:16 +0000
(16:04 -0500)
src/.bashrc.d/01detect_system
patch
|
blob
|
history
diff --git
a/src/.bashrc.d/01detect_system
b/src/.bashrc.d/01detect_system
index bce8321f46ef93dc32d7f9e70248dc4d8390d5e6..df8b7f38392ad4cb45d9c11bc046931341c494a4 100644
(file)
--- a/
src/.bashrc.d/01detect_system
+++ b/
src/.bashrc.d/01detect_system
@@
-9,9
+9,9
@@
if [ -z "${OS}" ]; then
export OS='Gentoo'
elif [ "${SHELL#*gentoo}" != "${SHELL}" ]; then # assumes 'gentoo' in prefix
export OS='Gentoo Prefix'
- elif
! grep -i debian /etc/issue
; then
+ elif
grep -i debian /etc/issue > /dev/null 2>&1
; then
export OS='Debian'
- elif
! grep -i ubuntu /etc/issue
; then
+ elif
grep -i ubuntu /etc/issue > /dev/null 2>&1
; then
export OS='Ubuntu'
else
echo "unknown system. Adjust .bashrc.d/01detect_system or set OS by hand" >&2