mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-11-22 21:02:03 +00:00
Fix building extensions from git without a sub directory on bash 5.3
This commit is contained in:
committed by
Shivam Mathur
parent
0825094f51
commit
7542bc9e62
@@ -126,7 +126,7 @@ fetch_extension() {
|
||||
run_group "git clone -nv $url/$org/$repo /tmp/$repo-$release" "git clone"
|
||||
cd /tmp/"$repo-$release" || exit 1
|
||||
git checkout -q "$release"
|
||||
cd "$sub_dir" || exit 1
|
||||
cd "${sub_dir:-.}" || exit 1
|
||||
if [ -e .gitmodules ]; then
|
||||
jobs="$(grep -c "\[submodule" .gitmodules)"
|
||||
run_group "git submodule update --jobs $jobs --init --recursive" "git submodule"
|
||||
|
||||
Reference in New Issue
Block a user