copy_buildsync.sh: simplify find clean up
Use find options to process everything rather than running through grep/sort/tr/xargs.
This commit is contained in:
parent
6325704c08
commit
867545ebd8
|
@ -74,11 +74,9 @@ copy_arch_to_outgoing() {
|
||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
find ${outdir} -mindepth 1 -type d \
|
find "${outdir}" \
|
||||||
| egrep -v current \
|
-depth -mindepth 1 -type d \
|
||||||
| sort -r \
|
-exec rmdir --ignore-fail-on-non-empty {} +
|
||||||
| tr '\n' '\0' \
|
|
||||||
| xargs -0 --no-run-if-empty rmdir --ignore-fail-on-non-empty
|
|
||||||
}
|
}
|
||||||
|
|
||||||
process_arch() {
|
process_arch() {
|
||||||
|
|
Loading…
Reference in a new issue