From 44ed333b42e9e3bcd0e588623e9a9ac1ce467461 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 6 Aug 2016 21:35:38 +0200 Subject: [PATCH] tell user of custom banner could not be downloaded --- scripts/common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/common.sh b/scripts/common.sh index 86e5b0c..194ce2a 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -122,10 +122,14 @@ download_banner () { if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr ]]; then wget -q --no-check-certificate "${CUSTOM_BANNER}" \ -O "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr__tmp + fi + + if [[ -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr ]]; then mv "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr__tmp \ "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr + BANNER="${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr + else "*** >> could not download custom banner" fi - BANNER="${PATCHIMAGE_RIIVOLUTION_DIR}"/"${GAMEID}"-custom-banner.bnr else echo "*** >> no custom banner available" fi