From 7bee7518638a6f836a9d881c99a0b86aad8f606a Mon Sep 17 00:00:00 2001 From: Luis Gabriel Gomez Date: Sat, 1 Oct 2022 18:55:34 -0300 Subject: [PATCH] fetch: Allow skipping undefined URL fetches un multi-core fetch rules --- libretro-fetch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libretro-fetch.sh b/libretro-fetch.sh index a7966f7c..6abacb32 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -54,7 +54,11 @@ libretro_fetch() { eval "git_url=\$libretro_${1}_git_url" if [ -z "$git_url" ]; then echo "libretro_fetch:No URL set to fetch $1 via git." - exit 1 + if [[ "$SKIP_UNKNOWN_URL_FETCH" -ne 1 ]]; then + exit 1 + else + echo "libretro_fetch:Skipping core $1" + fi fi eval "git_submodules=\$libretro_${1}_git_submodules"