We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc49950 commit d048151Copy full SHA for d048151
scripts/build.sh
@@ -80,7 +80,9 @@ build_php() {
80
save_commit() {
81
# Only store commit for unstable versions
82
if [ "${stable:?}" = "false" ]; then
83
- basename "$(curl -sL https://api.github.com/repos/php/php-src/commits/"${branch:?}" | jq -r .commit.url)" | tee "$INSTALL_ROOT/etc/php/$PHP_VERSION/COMMIT" >/dev/null 2>&1
+ commit="$(basename "$(curl -sL https://api.github.com/repos/php/php-src/commits/"${branch:?}" | jq -r .commit.url)")"
84
+ [ "$commit" = 'null' ] && exit 1;
85
+ echo "$commit" | tee "$INSTALL_ROOT/etc/php/$PHP_VERSION/COMMIT" >/dev/null 2>&1
86
fi
87
}
88
0 commit comments