xzhih / one-key-hidpi

Enable macOS HiDPI and have a native setting.
https://zhih.me/one-key-hidpi/
8.46k stars 981 forks source link

fix: use /usr/bin/sed instead of sed #251

Open jsvisa opened 2 weeks ago

jsvisa commented 2 weeks ago

I've installed the gnu-sed in my system, run the ./hidpi.sh failed with error below:

(4) 2560x1440 Display
(5) 3000x2000 Display
(6) 3440x1440 Display
(7) Manual input resolution

Enter your choice: 2
sed: can't read /.*IODisplayEDID/d: No such file or directory
sed: can't read /.*EDid/d: No such file or directory

and found we have use /usr/bin/sed in some places, so we should use /usr/bin/sed for the other places.