lmc999 / RegionRestrictionCheck

A bash script to check the status of your IP on various geo-restricted services.
GNU Affero General Public License v3.0
3.95k stars 536 forks source link

Notion to solve issues when running script on MacOS terminal: grep function is incomplete. #140

Open cky1201 opened 1 month ago

cky1201 commented 1 month ago

Script was run on a MacOS Terminal interface and the following error was prompt:

command 'grep' function is incomplete, please install the full version first.

This error prompted even when brew install grep is runned, and that no grep version newer than the version locally available.

Environment: MacOS Sonoma 14.5, Terminal version 2.14, grep installed version: grep (BSD grep, GNU compatible) 2.6.0-FreeBSD.

This issue is due to the workaround for new grep version install via homebrew not to interfere with the original one. The new version of grep is install as ggrep. Therefore, I suggest a MacOS terminal version that replaces 'grep' in the original script into 'ggrep' as a higher version of grep is needed to run the script.