Allow update of subcomponents to be skipped

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-04-25 16:51:19 +02:00
parent c30764b7cc
commit 9fb5ac36ed

View File

@ -46,6 +46,7 @@ else
targets=${all[@]} targets=${all[@]}
fi fi
if [[ -z ${SKIP_UPDATE_COMPONENTS} ]]; then
echo "Updating components" echo "Updating components"
"${SCRIPTS_DIR}/update-components.sh" "${SCRIPTS_DIR}/update-components.sh"
if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "true" ]]; then if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "true" ]]; then
@ -53,6 +54,9 @@ if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "tr
echo "Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'" echo "Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'"
exit 1 exit 1
fi fi
else
echo "Skipping update of components"
fi
eval $(${SCRIPTS_DIR}/get-component-versions.sh) eval $(${SCRIPTS_DIR}/get-component-versions.sh)