Changeset 132


Ignore:
Timestamp:
Dec 27, 2017, 3:37:16 PM (7 years ago)
Author:
g7moreau
Message:
  • Better grep and add better support for user@
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tssh/tssh

    r128 r132  
    122122      fi
    123123
    124       cluster=$(grep "^${host}" ${HOME}/.csshrc | cut -f 2 -d '=')
     124      cluster=$(grep "^${host#*@}\b" ${HOME}/.csshrc | cut -f 2 -d '=')
    125125      if [ "${cluster}" == "" ]
    126126      then
     
    140140                  continue
    141141               else
    142                   host=${host}.${dyn_domain}
    143                   ssh-keygen -q -R $(LANG=C host ${host} | awk '{print $4}')
     142                  host=${host#*@}.${dyn_domain}
     143                  ssh-keygen -q -R $(LANG=C host ${host#*@} | awk '{print $4}')
    144144               fi
    145145            fi
Note: See TracChangeset for help on using the changeset viewer.