ignorer user@ pour l'option -R
This commit is contained in:
parent
cc1250d677
commit
971a5e265d
3
ussh
3
ussh
|
@ -156,6 +156,9 @@ elif [ "$action" == "remove" ]; then
|
||||||
etitle "Suppression des entrées dans ~/.ssh/known_hosts"
|
etitle "Suppression des entrées dans ~/.ssh/known_hosts"
|
||||||
allhosts=("${hosts[@]}")
|
allhosts=("${hosts[@]}")
|
||||||
for host in "${allhosts[@]}"; do
|
for host in "${allhosts[@]}"; do
|
||||||
|
splituserhost "$host" user host
|
||||||
|
[[ "$host" == *.* ]] || host="$host${domain:+.$domain}"
|
||||||
|
|
||||||
if ipcalc_checkip "$host" >/dev/null; then
|
if ipcalc_checkip "$host" >/dev/null; then
|
||||||
ip="$host"
|
ip="$host"
|
||||||
remove "$ip"
|
remove "$ip"
|
||||||
|
|
Loading…
Reference in New Issue