@@ -192,12 +192,14 @@ rm -rf "${dir}/out" faileddirs="${faileddirs} ${dir}" echo "Failed to build ${dir}" else - outdir="$(ls -1d "${dir}/out"/*/"${PLATFORM}/" | head -1)" - mv "${dir}/out/build-${PLATFORM}.log" "${outdir}/build.log" + if [ "${CLEANONLY}" != "1" ]; then + outdir="$(ls -1d "${dir}/out"/*/"${PLATFORM}/" | head -1)" + mv "${dir}/out/build-${PLATFORM}.log" "${outdir}/build.log" + fi fi done # Cleanup is done at this point if [ "${CLEANONLY}" = "1" ]; then