git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Netgroups.
[profile.git]
/
opt
/
bin
/
sshcolourterm
diff --git
a/opt/bin/sshcolourterm
b/opt/bin/sshcolourterm
index
4a5f302
..
8bae4b0
100755
(executable)
--- a/
opt/bin/sshcolourterm
+++ b/
opt/bin/sshcolourterm
@@
-18,7
+18,7
@@
fi
# Get colour by netgroup.
if [ -z "$colour" ]; then
for netgroup in $(ls "$SSHCOLOURS" | grep ^\@); do
# Get colour by netgroup.
if [ -z "$colour" ]; then
for netgroup in $(ls "$SSHCOLOURS" | grep ^\@); do
- if netgroups $netgroup ${fqdn%%.*}
2
>/dev/null; then
+ if netgroups $netgroup ${fqdn%%.*}
&
>/dev/null; then
colour=$(readlink "$SSHCOLOURS/$netgroup")
break
fi
colour=$(readlink "$SSHCOLOURS/$netgroup")
break
fi