Avoid warnings
[girocco.git] / clonecheck.sh
blob6744b986b51f5fa06b3a26a70ad0b9402dfa7bbc
1 #!/bin/sh
3 shopt -s nullglob
5 cd /home/repo/repodata/to-clone
6 for dir in *; do
7 cp -r "$dir" ../cloning
8 rm -r "$dir"
9 cd ../cloning
10 /home/repo/repomgr/clone.sh "$dir"
11 exit # next dir at next cron invocation, to be safe
12 done