aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgitjoe-addsshkey.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitjoe-addsshkey.pl b/gitjoe-addsshkey.pl
index 7f280f9..b42f117 100755
--- a/gitjoe-addsshkey.pl
+++ b/gitjoe-addsshkey.pl
@@ -16,7 +16,7 @@ sub main {
my $usr = $ARGV[0];
my $sshkey = $ARGV[1];
my $home_dir = '/usr/home/' . $usr . '/';
- open(my $fh, '>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys');
+ open(my $fh, '>>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys');
print $fh "$sshkey\n";
close($fh);
exit;