sigmaboy / nopaystation_scripts

do things with nopaystation tsv and links automatically
GNU General Public License v3.0
112 stars 24 forks source link

Make compatible with non-bash shells, etc— portability changes #6

Closed JadedCtrl closed 5 years ago

JadedCtrl commented 5 years ago

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.)

sigmaboy commented 5 years ago

@JadedCtrl Sorry for answering this late. Will have a look the next few days and merge it. Looks good so far

sigmaboy commented 5 years ago

@JadedCtrl Thank you very much.