Merge pull request #706 from bgilbert/sdk_version

tag_release: Verify SDK version exists
This commit is contained in:
Benjamin Gilbert 2017-06-29 17:41:04 -07:00 committed by GitHub
commit c47ef878ef

View File

@ -71,6 +71,14 @@ if [[ "${FLAGS_sdk_version}" == "${BRANCH_VERSION}" ]]; then
"Try --sdk_version keep to use the existing SDK." "Try --sdk_version keep to use the existing SDK."
fi 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 ) sign_args=( -s )
if [ -n "${FLAGS_signer}" ]; then if [ -n "${FLAGS_signer}" ]; then
sign_args=( -u "${FLAGS_signer}" ) sign_args=( -u "${FLAGS_signer}" )