diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-10-29 22:02:11 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-10-29 22:02:11 -0500 |
commit | 6d6283e874b2f0248dd44878df1c329718de7509 (patch) | |
tree | 32a7438626e48e368c1496a7d0ab054fa1c6b1a3 /bin/ssh-add-helper | |
parent | d6a62f333eb73ea7f747ff7f3522c70647950a2a (diff) | |
download | conf-6d6283e874b2f0248dd44878df1c329718de7509.tar.gz conf-6d6283e874b2f0248dd44878df1c329718de7509.zip |
apparently HOSTNAME is just a fake env var that bash catches accesses to; use the hostname command instead
Diffstat (limited to 'bin/ssh-add-helper')
-rw-r--r-- | bin/ssh-add-helper | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ssh-add-helper b/bin/ssh-add-helper index eeac24f..092d451 100644 --- a/bin/ssh-add-helper +++ b/bin/ssh-add-helper @@ -3,7 +3,8 @@ use strict; use warnings; use IO::Pty::Easy; -my $pass = `pwsafe -pE ssh.$ENV{HOSTNAME}`; +my $hostname = `hostname`; +my $pass = `pwsafe -pE ssh.$hostname`; my $pty = IO::Pty::Easy->new; $pty->spawn("ssh-add -t 1800 $ARGV[0]"); $pty->read; |