From f8b0c67f10067812472d04f59e0d0050b49c7b28 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 10 Aug 2023 20:10:38 +0000 Subject: [PATCH] Update Downloader.bash --- ra-rom-downloader/Downloader.bash | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ra-rom-downloader/Downloader.bash b/ra-rom-downloader/Downloader.bash index 71785ba..cb2387b 100644 --- a/ra-rom-downloader/Downloader.bash +++ b/ra-rom-downloader/Downloader.bash @@ -523,12 +523,19 @@ do fileName="$(basename "$filteredOtherRoms")" fileName="$(UrlDecode "$fileName")" romUrl="$filteredOtherRoms" - log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: OTHER ROM FOUND ($fileName)" + if [ ! -z "$fileName" ]; then + log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: OTHER ROM FOUND ($fileName)" + fi else log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: ERROR :: No Filtered Roms Found..." continue fi + if [ -z "$fileName" ]; then + log "$processNumber/$platformToProcessNumber :: $platformName :: $romProcessNumber/$romListCount :: ERROR :: No Filtered Roms Found ($archiveContentsUrl)..." + continue + fi + # verify download if [ -f "${outputdir}${subFolder}${fileName}" ]; then DownloadFileVerification "${outputdir}${subFolder}${fileName}"