Bugswriter / notflix

Notflix is a shell script to search and stream torrent.
GNU General Public License v3.0
1.9k stars 176 forks source link

Mac OSX: "grep: invalid option -- P" error #83

Open dylan-gluck opened 2 years ago

dylan-gluck commented 2 years ago

When testing on Mac 12.1 getting the following error:

grep: invalid option -- P

After some research it appears that the version of grep on OSX does not supprt the -P method but does accept the -E flag for using regex. The comment that pointed me in the right direction.

I noticed in your code that you actually use -E on line 4 but then use -P on line 5 to do the same thing. If you update line 5 to use -E it should work with both linux and mac.


I created a fork of your project, notflix-osx, with the above change as well as a few other updates.

Thanks for putting together the original script. I had a similar idea the other day while using peerflix and found your project in my research.