xzhih / one-key-hidpi

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

make temp dir with `mktemp -d` #242

Open hyliang96 opened 9 months ago

hyliang96 commented 9 months ago

Replace ${currentDir}/tmp by mktemp -d, to avoid lacking permission to ${currentDir} when running bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)" under a root dir.