mirror of https://github.com/OpenRCT2/OpenRCT2.git
Shorten substring expansion
This commit is contained in:
parent
2e8c16e028
commit
7d1b6b3d9a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue