From a5ed55042de41d1755f7d87ea38739ac9447f33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mah=C3=A9?= Date: Fri, 4 Oct 2019 23:01:07 +0200 Subject: [PATCH] more compact syntax here I am not sure what was the role of the `gI` option at the end of the second `sed` command. My patch might then change the logic of the original code. --- mister_updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mister_updater.sh b/mister_updater.sh index 062709c..a5a96c5 100755 --- a/mister_updater.sh +++ b/mister_updater.sh @@ -259,7 +259,7 @@ then fi function checkCoreURL { - echo "Checking $(echo $CORE_URL | sed 's/.*\///g' | sed 's/_MiSTer//gI')" + echo "Checking $(sed 's/.*\/// ; s/_MiSTer//' <<< "${CORE_URL}")" [ "${SSH_CLIENT}" != "" ] && echo "URL: $CORE_URL" if echo "$CORE_URL" | grep -q "SD-Installer" then