The script is identical to the original, except it just overrides the architecture. If you are on a mac with apple silicone i.e. M1, M2, etc make sure to have rosetta enabled. https://support.apple.com/en-us/102527
sudo chmod +x heroku_mac.sh
./heroku_mac.sh --apple-silicone
Enjoy!