It will not let me run the command because it says it does not recognize apt-get. I tried replacing sudo apt-get with brew, but then I got this error after it ran:
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/services).
==> Updated Formulae
Updated 63 formulae.
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 578803, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 578803 (delta 31), reused 38 (delta 13), pack-reused 578742
Receiving objects: 100% (578803/578803), 253.94 MiB | 31.77 MiB/s, done.
Resolving deltas: 100% (408765/408765), done.
Tapped 3931 casks (4,010 files, 272.5MB).
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "ruby-dev".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
After that, I tried running the bash script again, but it told me that I have 7 outdated formulae, so I did brew upgrade and tried running the script again, but the terminal told me again that it refuses to link openssl when it gets to that part in the script.