From 272c4bfc0dfd427018d8b41bf70ef36ec4387f95 Mon Sep 17 00:00:00 2001 From: Jose BG Date: Sun, 21 Feb 2021 15:29:22 +0100 Subject: [PATCH] Removing curl and folder creation errors thanks to the advise from cdewit. --- mister_updater.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mister_updater.sh b/mister_updater.sh index 12ac5e7..70d2687 100755 --- a/mister_updater.sh +++ b/mister_updater.sh @@ -798,15 +798,23 @@ function checkCoreURL { "Minimig") CORE_INTERNAL_NAME="Amiga" ;; - "Apple-I"|"C64"|"PDP1"|"NeoGeo"|"AY-3-8500") + "Apple-I"|"C64"|"PDP1"|"NeoGeo"|"AY-3-8500"|"EDSAC"|"Galaksija") CORE_INTERNAL_NAME="${BASE_FILE_NAME}" ;; "SharpMZ") CORE_INTERNAL_NAME="SHARP MZ SERIES" ;; + "Amstrad-PCW") + CORE_INTERNAL_NAME="Amstrad PCW" + ;; *) CORE_SOURCE_URL="$(echo "https://github.com$MAX_RELEASE_URL" | sed 's/releases.*//g')${BASE_FILE_NAME}.sv" - CORE_INTERNAL_NAME="$(curl $CURL_RETRY $SSL_SECURITY_OPTION -sSLf "${CORE_SOURCE_URL}?raw=true" | awk '/CONF_STR[^=]*=/,/;/' | grep -oE -m1 '".*?;' | sed 's/[";]//g')" + CORE_INTERNAL_NAME="$(curl $CURL_RETRY $SSL_SECURITY_OPTION -sSLf "${CORE_SOURCE_URL}?raw=true" 2> /tmp/core_internal_name_error | awk '/CONF_STR[^=]*=/,/;/' | grep -oE -m1 '"[^;]*?;' | sed 's/[";]//g')" + if [ "$CORE_INTERNAL_NAME" == "" ] + then + cat /tmp/core_internal_name_error + echo "Couldn't create directory for ${BASE_FILE_NAME}" + fi ;; esac if [ "$CORE_INTERNAL_NAME" != "" ]