for dir in `find $DEST_PATH/* -type d -name repodata`; do repo="${dir%%/*}"; if [[ ${repo} == */suse* ]]; then continue; fi; pushd "$dir/.."; createrepo -q -c .cache -C .; popd; done;