diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:35:37 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-06 17:35:37 +0200 |
commit | 0d5d2793ba7fa511f218a16be5cb93edbe94895d (patch) | |
tree | c271251996e3f9c1daa3712ad06b126980c8fb39 | |
parent | push (diff) | |
download | joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.gz joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.bz2 joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.xz joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.tar.zst joe-scripts-0d5d2793ba7fa511f218a16be5cb93edbe94895d.zip |
Fix
-rwxr-xr-x | gitjoe-addsshkey.pl | 2 |
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; |