MT#58458 tolerate non existent directory

If we're writing to a new output directory, we may end up with some
directories not existing if not all of them contained files to be
generated. Don't bail out with an error in that case.

Change-Id: Id9fd1860da3ec60d799da50b3e0e82ecb8d98359
mr13.5
Richard Fuchs 10 months ago
parent 01ceb67e69
commit 786bf64dcf

@ -269,6 +269,12 @@ find_all_changed_services() {
local dir="$1"
log_debug "${FUNCNAME[0]}(): Working in ${OUTPUT_DIRECTORY}${dir}"
if ! [ -d "${OUTPUT_DIRECTORY}${dir}" ]; then
log_debug "${OUTPUT_DIRECTORY}${dir} doesn't exist, skip"
return
fi
pushd "${OUTPUT_DIRECTORY}${dir}" >/dev/null
local changed_files=()

Loading…
Cancel
Save