These are just a few changes that make it so the script can run on basically any system— curl or wget used can be used, sha256 or sha256sum can be used, and all arrays are replaced with simple strings.
(Arrays are a bashism that can be useful sometimes, but aren't usually necessary. Here, since every item in the arrays were only one word long, iterating through the string works perfectly, since space is the default delimeter.)
These are just a few changes that make it so the script can run on basically any system— curl or wget used can be used, sha256 or sha256sum can be used, and all arrays are replaced with simple strings.
(Arrays are a bashism that can be useful sometimes, but aren't usually necessary. Here, since every item in the arrays were only one word long, iterating through the string works perfectly, since space is the default delimeter.)