simpler syntax (I think)

no need for a `cat` and a simpler `grep` command.
This commit is contained in:
Frédéric Mahé
2019-10-04 22:48:02 +02:00
committed by GitHub
parent 7fee59f581
commit 559bb8fb49

View File

@@ -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 ""