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