aboutsummaryrefslogtreecommitdiffstats
path: root/src/gitjoe-chdesc.pl
diff options
context:
space:
mode:
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;