mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-03 13:45:19 +03:00
20 lines
528 B
Bash
Executable File
20 lines
528 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -z "${BUILD_SOURCEVERSION}" ]]; then
|
|
|
|
if type -t "sha1sum" > /dev/null 2>&1; then
|
|
export BUILD_SOURCEVERSION=$( echo "${RELEASE_VERSION/-*/}" | sha1sum | cut -d' ' -f1 )
|
|
else
|
|
npm install -g checksum
|
|
|
|
export BUILD_SOURCEVERSION=$( echo "${RELEASE_VERSION/-*/}" | checksum )
|
|
fi
|
|
|
|
echo "BUILD_SOURCEVERSION=\"${BUILD_SOURCEVERSION}\""
|
|
|
|
# for GH actions
|
|
if [[ "${GITHUB_ENV}" ]]; then
|
|
echo "BUILD_SOURCEVERSION=${BUILD_SOURCEVERSION}" >> "${GITHUB_ENV}"
|
|
fi
|
|
fi
|