File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ source "${REPO_ROOT}/scripts/common.sh"
88cd " $REPO_ROOT "
99version=$( scripts/get_version.sh)
1010commit_hash=$( git rev-parse --short=8 HEAD)
11- commit_date=$( git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e ' s/-0?/./' | sed -e ' s/-0?/./' )
1211
1312# File exists and has zero size -> not a prerelease
1413if [[ -e prerelease.txt && ! -s prerelease.txt ]]; then
1514 version_string=" $version "
15+ elif [[ -e prerelease.txt ]]; then
16+ version_string=" ${version} -$( cat prerelease.txt) -${commit_hash} "
1617else
18+ commit_date=$( git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e ' s/-0?/./' | sed -e ' s/-0?/./' )
1719 version_string=" ${version} -nightly-${commit_date} -${commit_hash} "
1820fi
1921
You can’t perform that action at this time.
0 commit comments