diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-07 21:58:35 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-07 21:58:35 +0200 |
commit | 4d484b3903b03828a275a49c9f35fc8d143feb84 (patch) | |
tree | 64df184d0510e2e0ea237745e78a2ad87718e4da /src/gitjoe-newrepo.pl | |
parent | Rename (diff) | |
download | joe-scripts-4d484b3903b03828a275a49c9f35fc8d143feb84.tar.gz joe-scripts-4d484b3903b03828a275a49c9f35fc8d143feb84.tar.bz2 joe-scripts-4d484b3903b03828a275a49c9f35fc8d143feb84.tar.xz joe-scripts-4d484b3903b03828a275a49c9f35fc8d143feb84.tar.zst joe-scripts-4d484b3903b03828a275a49c9f35fc8d143feb84.zip |
New script for changing owners
Diffstat (limited to 'src/gitjoe-newrepo.pl')
-rwxr-xr-x | src/gitjoe-newrepo.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gitjoe-newrepo.pl b/src/gitjoe-newrepo.pl index 98757e7..951b1b5 100755 --- a/src/gitjoe-newrepo.pl +++ b/src/gitjoe-newrepo.pl @@ -49,7 +49,7 @@ sub main { '-c', '/usr/sbin/chown -v ' . $usr . ':' . $usr . ' ' . $home_dir . $repo . 'git-daemon-export-ok' ); - open(my $owner_fh, '>:encoding(utf-8)', $home_dir . $repo . 'owner'); + open(my $owner_fh, '>:encoding(UTF-8)', $home_dir . $repo . 'owner'); print $owner_fh $usr; close($owner_fh); system( @@ -57,7 +57,7 @@ sub main { '-c', '/usr/sbin/chown -v ' . $usr . ':' . $usr . ' ' . $home_dir . $repo . 'owner' ); - open(my $url_fh, '>:encoding(utf-8)', $home_dir . $repo . 'url'); + open(my $url_fh, '>:encoding(UTF-8)', $home_dir . $repo . 'url'); substr($repo, -1) = ""; print $url_fh 'git://jozanleclerc.xyz/' . $usr . '/' . $repo; close($url_fh); @@ -68,7 +68,7 @@ sub main { '/usr/sbin/chown -v ' . $usr . ':' . $usr . ' ' . $home_dir . $repo . 'url' ); if ($argc >= 3) { - open(my $desc_fh, '>:encoding(utf-8)', $home_dir . $repo . 'description'); + open(my $desc_fh, '>:encoding(UTF-8)', $home_dir . $repo . 'description'); print $desc_fh $desc; close($desc_fh); system( @@ -78,7 +78,7 @@ sub main { ); } else { - open(my $desc_fh, '>:encoding(utf-8)', $home_dir . $repo . 'description'); + open(my $desc_fh, '>:encoding(UTF-8)', $home_dir . $repo . 'description'); print $desc_fh 'No description yet'; close($desc_fh); system( |