summaryrefslogtreecommitdiffstats
path: root/bin/ssh-add-helper
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-10-29 22:02:11 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-10-29 22:02:11 -0500
commit6d6283e874b2f0248dd44878df1c329718de7509 (patch)
tree32a7438626e48e368c1496a7d0ab054fa1c6b1a3 /bin/ssh-add-helper
parentd6a62f333eb73ea7f747ff7f3522c70647950a2a (diff)
downloadconf-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-helper3
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;