diff options
-rw-r--r-- | tinderbox/bashrc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tinderbox/bashrc b/tinderbox/bashrc index 6d21868..b378dac 100644 --- a/tinderbox/bashrc +++ b/tinderbox/bashrc @@ -108,11 +108,9 @@ tinderbox_postinst_checks() { SANDBOX_ON=0 cp "${T}"/testsfailed "${BUILD_DATA_DIR}" 2> /dev/null SANDBOX_ON=0 find "${T}" -name "tinderbox-*.log" -not -empty -execdir mv '{}' "${BUILD_DATA_DIR}" \; - if [ ls "${T}"/logging/* > /dev/null 2>&1 ] ; then - SANDBOX_ON=0 grep --no-filename QA "${T}"/logging/* > "${BUILD_DATA_DIR}"/portageqa - fi + SANDBOX_ON=0 grep --no-filename -r QA "${T}"/logging/ > "${BUILD_DATA_DIR}"/portageqa - if [[ ! -s "${BUILD_DATA_DIR}"/portageqa ]] && [ -f "${BUILD_DATA_DIR}"/portageqa ] ; then + if [[ ! -s "${BUILD_DATA_DIR}"/portageqa ]] ; then SANDBOX_ON=0 rm "${BUILD_DATA_DIR}"/portageqa fi |