X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;ds=sidebyside;f=.profile.d%2Fkrb5.bashrc;h=4c5f71d1a43a43aa200f864d4e9e1fbb1fafc2dd;hb=fc8569b09fbdd15940d09c154e6d7795c5e10294;hp=034dadd8231ba6c4f4e0cce5dac8cdd95a103ca7;hpb=77db9042493a3b6adab6e2e95baedc3e691a4212;p=profile.git diff --git a/.profile.d/krb5.bashrc b/.profile.d/krb5.bashrc index 034dadd..4c5f71d 100644 --- a/.profile.d/krb5.bashrc +++ b/.profile.d/krb5.bashrc @@ -3,7 +3,7 @@ alias pssh='ssh -o preferredauthentications=password,keyboard-interactive' unalias kinit 2>/dev/null if [ 1 = 0 -a -z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then - if tty -s; then + if [ -t 0 ]; then if [ ! "$SUDO_UID" ]; then if klist -s 2>/dev/null; then # We already have a ticket cache. Renew it.