diff options
author | Ryan Kavanagh <rak@debian.org> | 2013-03-21 14:37:02 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2013-03-21 14:37:02 -0400 |
commit | 8acf5c341d2d477add2e773a66a47437663a9a43 (patch) | |
tree | 468bc306bafa4df5508a6eb3eff0825eaa6c1c76 /bin | |
parent | Make zsh play nice with tmux (diff) |
Update make-ssh-known-hosts to deal with aliases
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/make-ssh-known-hosts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/make-ssh-known-hosts b/bin/make-ssh-known-hosts index 34901af..77e31ed 100755 --- a/bin/make-ssh-known-hosts +++ b/bin/make-ssh-known-hosts @@ -26,8 +26,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. for i in "$@"; do - IP4=$(host -t A "$i" | awk '{ print "," $NF }'); - IP6=$(host -t AAAA "$i" | awk '{ print "," $NF }'); + IP4=$(host -t A "$i" | awk '/address/ { print "," $NF }'); + IP6=$(host -t AAAA "$i" | awk '/address/ { print "," $NF }'); if test "${IP4}" = ",record"; then IP4=""; fi |