aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 22:09:22 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-07 22:09:22 +0200
commit048b0fef30f080d6f765eb5ae23d9ad6df0e8b8c (patch)
tree7164e75e3e323844b8c955638d12271aeddd4e7e
parentTest (diff)
downloadjoe-scripts-048b0fef30f080d6f765eb5ae23d9ad6df0e8b8c.tar.gz
joe-scripts-048b0fef30f080d6f765eb5ae23d9ad6df0e8b8c.tar.bz2
joe-scripts-048b0fef30f080d6f765eb5ae23d9ad6df0e8b8c.tar.xz
joe-scripts-048b0fef30f080d6f765eb5ae23d9ad6df0e8b8c.tar.zst
joe-scripts-048b0fef30f080d6f765eb5ae23d9ad6df0e8b8c.zip
Trying to sort
-rwxr-xr-xsrc/update-gitjoe.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update-gitjoe.pl b/src/update-gitjoe.pl
index 473d9e8..fdf8a80 100755
--- a/src/update-gitjoe.pl
+++ b/src/update-gitjoe.pl
@@ -14,12 +14,12 @@ sub get_repos_index {
while (my $dir = readdir(DIR)) {
next if ($dir =~ m/^\./);
next if (!(-e $home_dir . $dir . '/git-daemon-export-ok'));
- print $dir;
$repos[$i] = $dir;
$i += 1;
}
closedir(DIR);
- return @repos;
+ my @sorted_repos = sort @repos;
+ return @sorted_repos;
}
sub stagit_generate {