Skip to content

Commit a3874f0

Browse files
committed
create_source_tarball.sh: Use prerelease name from prerelease.txt when available instead of hard-coding "nightly"
1 parent 2b950bb commit a3874f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/create_source_tarball.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ commit_date=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/
1313
# File exists and has zero size -> not a prerelease
1414
if [[ -e prerelease.txt && ! -s prerelease.txt ]]; then
1515
version_string="$version"
16+
elif [[ -e prerelease.txt ]]; then
17+
version_string="${version}-$(cat prerelease.txt)-${commit_hash}"
1618
else
1719
version_string="${version}-nightly-${commit_date}-${commit_hash}"
1820
fi

0 commit comments

Comments
 (0)