mirror of
https://github.com/libretro/libretro-super
synced 2025-01-27 06:35:23 +00:00
libretro-buildbot-recipe.sh: Use git -C to change directories.
This avoids a subshell and does not require using 'cd' here.
This commit is contained in:
parent
be925301fd
commit
d13664d515
@ -635,13 +635,9 @@ while read line; do
|
||||
BUILD="YES"
|
||||
fi
|
||||
|
||||
(
|
||||
cd -- "$DIR" || { echo "Failed to cd to ${DIR}, skipping ${NAME}"; continue; }
|
||||
|
||||
if git config --file .gitmodules --name-only --get-regexp path 2>&1 >/dev/null; then
|
||||
git --work-tree="." --git-dir=".git" submodule update --init --recursive
|
||||
if git config --file "$DIR/.gitmodules" --name-only --get-regexp path 2>&1 >/dev/null; then
|
||||
git --work-tree="." --git-dir=".git" -C "$DIR" submodule update --init --recursive
|
||||
fi
|
||||
)
|
||||
|
||||
for core in 81 emux_nes emux_sms fuse gw mgba; do
|
||||
if [ "${PREVCORE}" = "$core" ] && [ "${PREVBUILD}" = "YES" ] && [ "${NAME}" = "$core" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user