From 4d484b3903b03828a275a49c9f35fc8d143feb84 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 7 Jul 2020 21:58:35 +0200 Subject: New script for changing owners --- src/gitjoe-chdesc.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gitjoe-chdesc.pl') 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; -- cgit v1.2.3