tag_release: Verify SDK version exists

Some releases may omit the SDK for expediency.
This commit is contained in:
Benjamin Gilbert 2017-06-29 17:20:29 -07:00
parent 336ac28026
commit 7e93698c9b

View File

@ -71,6 +71,14 @@ if [[ "${FLAGS_sdk_version}" == "${BRANCH_VERSION}" ]]; then
"Try --sdk_version keep to use the existing SDK."
fi
# Verify that the specified SDK version exists
COREOS_SDK_VERSION="${FLAGS_sdk_version}"
. "${SCRIPT_ROOT}/sdk_lib/sdk_util.sh"
if ! curl --head --fail --silent "${COREOS_SDK_URL}" > /dev/null ; then
die_notrace "SDK version does not exist." \
"Try --sdk_version keep to use the existing SDK."
fi
sign_args=( -s )
if [ -n "${FLAGS_signer}" ]; then
sign_args=( -u "${FLAGS_signer}" )