aboutsummaryrefslogtreecommitdiff
path: root/bin/make-ssh-known-hosts
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-03-21 14:37:02 -0400
committerRyan Kavanagh <rak@debian.org>2013-03-21 14:37:02 -0400
commit8acf5c341d2d477add2e773a66a47437663a9a43 (patch)
tree468bc306bafa4df5508a6eb3eff0825eaa6c1c76 /bin/make-ssh-known-hosts
parentMake zsh play nice with tmux (diff)
Update make-ssh-known-hosts to deal with aliases
Diffstat (limited to 'bin/make-ssh-known-hosts')
-rwxr-xr-xbin/make-ssh-known-hosts4
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