From 559bb8fb497f4f35640882a5eb2faa3956ffc895 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:48:02 +0200 Subject: [PATCH] simpler syntax (I think) no need for a `cat` and a simpler `grep` command. --- mister_updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mister_updater.sh b/mister_updater.sh index 062709c..253aa17 100755 --- a/mister_updater.sh +++ b/mister_updater.sh @@ -209,7 +209,7 @@ case $? in esac 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 -" ] + if [ "$(grep -v "^#" "${ORIGINAL_SCRIPT_PATH}")" == "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 ""