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

Dependency workaround for FreeBSD/macOS systems #141

Open Soneoylys opened 1 month ago

Soneoylys commented 1 month ago

Use ggrep as grep for BSD systems

This should resolve "command 'grep' function is incomplete, please install the full version first." as BSD systems use ggrep for GNU grep

Use md5 -r as md5sum for macOS systems

This should resolve conflicts while installing "md5sha1sum" and "coreutils" together via brew, as they both providing "md5sum" binary, none of them are required now

Soneoylys commented 1 month ago

should fix #140, tested on macOS Ventura & macOS Sonoma

betaxab commented 1 month ago

用变量不太好,要不然改成 function?