mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
tag_release: Verify SDK version exists
Some releases may omit the SDK for expediency.
This commit is contained in:
parent
336ac28026
commit
7e93698c9b
@ -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}" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user