watch: add 'watch' support
[girocco/ztw.git] / clonecheck.sh.in
blob321b6d99000d1e8fe6f8979753e7278c16cb5352
1 #!/bin/sh
3 shopt -s nullglob
5 cd @repodata_path@/to-clone
6 for dir in *; do
7 cp -r "$dir" ../cloning
8 rm -r "$dir"
9 cd ../cloning
10 @repomgr_path@/clone.sh "$dir"
11 exit # next dir at next cron invocation, to be safe
12 done