From 971a5e265dd90dc4346708443ae2e2f6181f9d17 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Fri, 21 Feb 2014 15:18:25 +0400 Subject: [PATCH] ignorer user@ pour l'option -R --- ussh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ussh b/ussh index fb119d8..5af2b5e 100755 --- a/ussh +++ b/ussh @@ -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"