Shorten substring expansion

This commit is contained in:
Margen67 2022-03-11 03:31:07 -08:00
parent 2e8c16e028
commit 7d1b6b3d9a
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ fi
# Get the short SHA1
export OPENRCT2_SHA1=$GITHUB_SHA
export OPENRCT2_SHA1_SHORT=${OPENRCT2_SHA1:0:7}
export OPENRCT2_SHA1_SHORT=${OPENRCT2_SHA1::7}
unset OPENRCT2_VERSION_EXTRA
if [[ "$OPENRCT2_TAG" != "true" ]]; then
export OPENRCT2_VERSION_EXTRA=$OPENRCT2_BRANCH-$OPENRCT2_SHA1_SHORT

View File

@ -74,7 +74,7 @@ case "$flavour" in
esac
if [ -n "$branch" ]; then
versionextra=-$branch-${sha1:0:7}
versionextra=-$branch-${sha1::7}
fi
filename=OpenRCT2-$version$versionextra-$flavour