diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 00:38:15 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 00:38:15 +0200 |
commit | 5a57b76bf40372abd7c247d53d0d1ecbe7f5b205 (patch) | |
tree | 17baa457356142c300b4e11d6c6e477ce703b66c /src/gitjoe/chowner.pl | |
parent | Cool (diff) | |
download | joe-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-x | src/gitjoe/chowner.pl | 5 |
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; } |