X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=opt%2Fbin%2Fsshcolourterm;h=8bae4b05bb90861289f6e442b049c60d36d62506;hb=80a28ca55ac0e9a9743b561ff3a0ac9ccc62d4ce;hp=4a5f302ef913aa0703a6fa704b7ff33211e0675b;hpb=80c177c858de9318b83e4491be0cba7854f9144f;p=profile.git diff --git a/opt/bin/sshcolourterm b/opt/bin/sshcolourterm index 4a5f302..8bae4b0 100755 --- 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 - if netgroups $netgroup ${fqdn%%.*} 2>/dev/null; then + if netgroups $netgroup ${fqdn%%.*} &>/dev/null; then colour=$(readlink "$SSHCOLOURS/$netgroup") break fi