ignorer user@ pour l'option -R

This commit is contained in:
Jephté Clain 2014-02-21 15:18:25 +04:00
parent cc1250d677
commit 971a5e265d
1 changed files with 3 additions and 0 deletions

3
ussh
View File

@ -156,6 +156,9 @@ elif [ "$action" == "remove" ]; then
etitle "Suppression des entrées dans ~/.ssh/known_hosts"
allhosts=("${hosts[@]}")
for host in "${allhosts[@]}"; do
splituserhost "$host" user host
[[ "$host" == *.* ]] || host="$host${domain:+.$domain}"
if ipcalc_checkip "$host" >/dev/null; then
ip="$host"
remove "$ip"