Skip to content

Commit

Permalink
Short version handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmojo committed May 17, 2024
1 parent a67e10a commit 5864615
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set -e

MITKERBEROS_VERSION_STABLE="1.21.2" # https://kerberos.org/dist/
MITKERBEROS_VERSION_SHORT_STABLE="1.21"

OPENSSL_VERSION="3.2.1"

Expand All @@ -24,8 +23,11 @@ if [[ -z $MITKERBEROS_VERSION ]]; then
fi

if [[ -z $MITKERBEROS_VERSION_SHORT ]]; then
echo "MITKERBEROS_VERSION_SHORT not set; falling back to ${MITKERBEROS_VERSION_SHORT_STABLE} (Stable)"
MITKERBEROS_VERSION_SHORT="${MITKERBEROS_VERSION_SHORT_STABLE}"
short_version_length=${#MITKERBEROS_VERSION}
short_version_endindex=$(expr $short_version_length - 2)
MITKERBEROS_VERSION_SHORT="${MITKERBEROS_VERSION:0:$short_version_endindex}"

echo "MITKERBEROS_VERSION_SHORT not set; falling back to ${MITKERBEROS_VERSION_SHORT} (Stable)"
fi

if [[ ! -f "${BUILD_ROOT_DIR}/krb5-${MITKERBEROS_VERSION}.tar.gz" ]]; then
Expand Down

0 comments on commit 5864615

Please sign in to comment.