tanrax / maza-ad-blocking

Simple, native and efficient local ad blocker. Only Bash.
https://maza-ad-blocking.andros.dev/
Apache License 2.0
1.78k stars 64 forks source link

sed -i error on macOS Catalina 10.15.3 #1

Closed dwsmith1983 closed 4 years ago

dwsmith1983 commented 4 years ago

sed: 1: "1i\### Created by Andro ...": extra characters after \ at the end of i command

I am on macOS Catalina 10.15.3

tanrax commented 4 years ago

It seems that OSX is outdated SED. I've created a small update.

First uninstall it as indicated by the README.

sudo rm /usr/local/bin/maza && sudo rm -r ~/.maza

On OSX install the latest version of SED, with...

brew install gnu-sed

Y finally install again

curl -o maza https://raw.githubusercontent.com/tanrax/maza-ad-blocking/master/maza && chmod +x maza && sudo mv maza /usr/local/bin

Good luck

dwsmith1983 commented 4 years ago

brew install gnu-sed