mirroring/clone.sh: Add Source URL to the notification mail
[girocco.git] / jobs / clonecheck.sh
blob01433fde37fa2fffbd5e700e307ebf4cb6dc0dfb
1 #!/bin/sh
3 . @basedir@/shlib.sh
5 shopt -s nullglob
7 cd "$cfg_mqueuedir"/to-clone
8 get_repo_list_here |
9 while read dir; do
10 mkdir -m 0775 -p "$cfg_reporoot/$(dirname "$dir")"
11 mv "$dir" "$cfg_reporoot/$(dirname "$dir")"
12 "$cfg_basedir"/mirroring/clone.sh "$dir"
13 exit # next dir at next cron invocation, to be safe
14 done