mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Shorten substring expansion
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user