#!/bin/bash DEST_PATH="/data/repository/opensuse/102" set -x for dir in `find /data/repository/opensuse/102/* -type d -name repodata`; do if [[ ${dir} == */suse* ]]; then continue; fi; pushd "$dir/.."; createrepo -q -c .cache -C .; popd; done;