Fix building extensions from git without a sub directory on bash 5.3

This commit is contained in:
IvanCraft623
2026-11-01 05:34:44 +05:30
committed by Shivam Mathur
parent 0825094f51
commit 7542bc9e62
+1 -1
View File
@@ -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"