From c9b7ab2184916562d7f29d09a15284985b358b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mah=C3=A9?= Date: Fri, 4 Oct 2019 22:52:08 +0200 Subject: [PATCH] simpler syntax no need for a `pipe`, `echo`, or the `g` option of `sed` --- mister_updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mister_updater.sh b/mister_updater.sh index 062709c..9dda52f 100755 --- a/mister_updater.sh +++ b/mister_updater.sh @@ -211,7 +211,7 @@ if [ "$SSL_SECURITY_OPTION" == "" ] then if [ "$(cat "$ORIGINAL_SCRIPT_PATH" | grep "^[^#].*")" == "curl $CURL_RETRY -ksLf https://github.com/MiSTer-devel/Updater_script_MiSTer/blob/master/mister_updater.sh?raw=true | bash -" ] then - echo "Downloading $(echo $ORIGINAL_SCRIPT_PATH | sed 's/.*\///g')" + echo "Downloading $(sed 's/.*\///' <<< "${ORIGINAL_SCRIPT_PATH}")" echo "" curl $CURL_RETRY $SSL_SECURITY_OPTION -L "https://github.com/MiSTer-devel/Updater_script_MiSTer/blob/master/update.sh?raw=true" -o "$ORIGINAL_SCRIPT_PATH" fi