aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 20:25:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 20:25:47 +0200
commit95bd6216667147542bb7cdeccd148af69fd735b0 (patch)
treee06a063bb2558a9716a80a85aa94a62f3f381393
parentBetter with that (diff)
downloadjoe-scripts-95bd6216667147542bb7cdeccd148af69fd735b0.tar.gz
joe-scripts-95bd6216667147542bb7cdeccd148af69fd735b0.tar.bz2
joe-scripts-95bd6216667147542bb7cdeccd148af69fd735b0.tar.xz
joe-scripts-95bd6216667147542bb7cdeccd148af69fd735b0.tar.zst
joe-scripts-95bd6216667147542bb7cdeccd148af69fd735b0.zip
Test
-rwxr-xr-xupdate-gitjoe.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/update-gitjoe.pl b/update-gitjoe.pl
index de53cd1..5c06236 100755
--- a/update-gitjoe.pl
+++ b/update-gitjoe.pl
@@ -17,14 +17,27 @@ sub get_repos_index {
$i += 1;
}
$i = 0;
+ print 'User: ' . colored($user, 'bold') . " repos: \n";
while ($i < @repos) {
print $repos[$i] . "\n";
$i += 1;
}
closedir(DIR);
+ print "\n";
return @repos;
}
+sub stagit_generate {
+ my $user = $_[0];
+ my @repos = $_[1];
+ my $i = 0;
+ while ($i < @repos) {
+ print $repos[$i];
+ $i += 1;
+ }
+ return;
+}
+
sub main {
my $homedir = '/usr/home/';
my @users;
@@ -40,6 +53,7 @@ sub main {
$i = 0;
while ($i < @users) {
my @repos = get_repos_index($users[$i]);
+ stagit_generate($users[$i], @repos);
$i += 1;
}
exit;