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-chdesc.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 '')
-rwxr-xr-x | src/gitjoe-chdesc.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gitjoe-chdesc.pl b/src/gitjoe-chdesc.pl index 96d5b54..6784f97 100755 --- a/src/gitjoe-chdesc.pl +++ b/src/gitjoe-chdesc.pl @@ -6,10 +6,10 @@ use Term::ANSIColor; sub main { my $argc = $#ARGV + 1; - if ($argc < 2) { + if ($argc < 3) { print colored("Failed!\n", 'bold red') . "Missing argument, 3 needed " - . colored("[user - reponame - description]", 'bold') + . colored("[user - reponame - new description]", 'bold') . "\n"; exit 1; } @@ -21,7 +21,7 @@ sub main { $repo = $repo . '.git'; } $repo = $repo . '/'; - 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); exit; |