aboutsummaryrefslogtreecommitdiffstats
path: root/src/gitjoe/chowner.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-30 00:38:15 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-30 00:38:15 +0200
commit5a57b76bf40372abd7c247d53d0d1ecbe7f5b205 (patch)
tree17baa457356142c300b4e11d6c6e477ce703b66c /src/gitjoe/chowner.pl
parentCool (diff)
downloadjoe-scripts-5a57b76bf40372abd7c247d53d0d1ecbe7f5b205.tar.gz
joe-scripts-5a57b76bf40372abd7c247d53d0d1ecbe7f5b205.tar.bz2
joe-scripts-5a57b76bf40372abd7c247d53d0d1ecbe7f5b205.tar.xz
joe-scripts-5a57b76bf40372abd7c247d53d0d1ecbe7f5b205.tar.zst
joe-scripts-5a57b76bf40372abd7c247d53d0d1ecbe7f5b205.zip
New script to change repo visibility
Diffstat (limited to 'src/gitjoe/chowner.pl')
-rwxr-xr-xsrc/gitjoe/chowner.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gitjoe/chowner.pl b/src/gitjoe/chowner.pl
index fa8ca47..203e4ba 100755
--- a/src/gitjoe/chowner.pl
+++ b/src/gitjoe/chowner.pl
@@ -4,7 +4,8 @@ use strict;
use warnings;
use Term::ANSIColor;
-sub main {
+sub main
+{
my $argc = $#ARGV + 1;
if ($argc < 3) {
print colored("Failed!\n", 'bold red')
@@ -25,7 +26,7 @@ sub main {
print $owner_fh $owner;
close($owner_fh);
substr($repo, -1) = "";
- print "Changed git repository " . colored($repo, 'bold green') . " owner for user " . colored($usr, 'bold') . ".\n"
+ print "Changed git repository " . colored($repo, 'bold green') . colored(" owner", 'bold') . " for user " . colored($usr, 'bold green') . ".\n"
. "New owner: ". colored($owner, 'bold green') . ".\n";
exit;
}