From 630def8a515f35def05d32ed93f5a315a5905b64 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Fri, 6 Mar 2015 20:51:08 -0800 Subject: [PATCH] Make error checking better --- libretro-fetch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-fetch.sh b/libretro-fetch.sh index 105d3173..916ca50d 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -69,7 +69,7 @@ libretro_fetch() { local git_submodules local i - eval "num_git_urls=\$libretro_${1}_mgit_urls" + eval "num_git_urls=\${libretro_${1}_mgit_urls:-0}" if [ "$num_git_urls" -lt 1 ]; then echo "Cannot fetch \"$num_git_urls\" multiple git URLs" return 1