TT#65907 Remove confusing 'RC' variable from scripts/build ('set -e' in use)

We do abort building on the first broken file due to 'set -e' above.
Having $RC variable here which collects exit code is very confusing.

Change-Id: I415bc77d8becf317c1be6b5ac493be2583479e00
changes/96/33696/3
Alexander Lutay 7 years ago
parent db586adcab
commit e9b980fada

@ -74,14 +74,12 @@ build_config_files() {
log_debug "${HELPER}/build_config ${input_file} ${output_file}"
"${HELPER}/build_config" "${input_file}" "${output_file}"
RC=$((RC + $?))
done
record_commit_id
}
# main script
RC=0
if ! $MODIFIED_ONLY ; then
build_config_files "$@"
@ -196,6 +194,6 @@ if [ -f "${CONSTANTS_CONFIG:-}" ]; then
fi
fi
exit "$RC"
exit 0
## END OF FILE #################################################################

Loading…
Cancel
Save