Fix version log for nightly PHP on ubuntu

This commit is contained in:
Shivam Mathur 2021-03-13 22:30:13 +05:30
parent c870bc9a3a
commit 6db6ddbab2
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -162,7 +162,7 @@ add_devtools() {
# Function to setup the nightly build from shivammathur/php-builder
setup_nightly() {
run_script "php-builder" "$runner" "$version"
extra_version="($(cat "/etc/php/$version/COMMIT"))"
extra_version="-dev ($(cat "/etc/php/$version/COMMIT"))"
}
# Function to setup PHP 5.3, PHP 5.4 and PHP 5.5.
@ -275,7 +275,7 @@ setup_php() {
sudo rm -rf /usr/local/bin/phpunit >/dev/null 2>&1
sudo chmod 777 "${ini_file[@]}" "$pecl_file" "${tool_path_dir:?}"
sudo cp "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/"
add_log "${tick:?}" "PHP" "$status PHP $semver $extra_version"
add_log "${tick:?}" "PHP" "$status PHP $semver$extra_version"
}
# Variables