mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Fix sub-directory support for extension setup from source
This commit is contained in:
parent
39faaac1d3
commit
7627a79c01
@ -64,8 +64,9 @@ add_extension_from_source() {
|
||||
add_devtools phpize >/dev/null
|
||||
delete_extension "$extension"
|
||||
run_group "git clone -nv $domain/$org/$repo /tmp/$repo-$release" "git clone"
|
||||
cd /tmp/"$repo-$release/$sub_dir" || exit 1
|
||||
cd /tmp/"$repo-$release" || exit 1
|
||||
git checkout -q "$release"
|
||||
cd $sub_dir || exit 1
|
||||
if ! [ "$(find . -maxdepth 1 -name '*.m4' -exec grep -H 'PHP_NEW_EXTENSION' {} \; | wc -l)" != "0" ]; then
|
||||
add_log "${cross:?}" "$domain/$org/$repo" "$domain/$org/$repo does not have a PHP extension"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user