Browse Source

Tester l'installation de checkout d'abord

pull/5/head
nicod_ 1 year ago
committed by Gitea
parent
commit
9336066d05
  1. 9
      mirror.php

9
mirror.php

@ -22,6 +22,15 @@ $updated = [];
$empty = [];
$nb_repositories = 0;
// tester si checkout.php est bien disponible dans le path
$output = [];
exec('which checkout.php', $output);
$output = trim(implode("\n", $output));
if(empty($output)){
echo "Le script checkout.php doit être installé d'abord : https://git.spip.net/spip-contrib-outils/checkout\n";
die();
}
foreach ($url_orgs as $url_org) {
$repos = debardeur_connecteur_gitea_lister_repositories($url_org, time() - 10 * 60);
$total = count($repos);

Loading…
Cancel
Save