aboutsummaryrefslogtreecommitdiffstats
path: root/src/gitjoe-chdesc.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 21:58:35 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 21:58:35 +0200
commit4d484b3903b03828a275a49c9f35fc8d143feb84 (patch)
tree64df184d0510e2e0ea237745e78a2ad87718e4da /src/gitjoe-chdesc.pl
parentRename (diff)
downloadjoe-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-xsrc/gitjoe-chdesc.pl6
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;