Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey, I noticed that there have been a number of discussions and pull requests about moving
updater.sh
away from bash toward POSIX compliance (#1641 being one example). I'm opening a simple pull request to test the waters and gauge interest before I attempt to write something more thorough.As a side note, if the maintainers are open to a pull request replacing
{updater,prefsCleaner}.{sh,bat}
with a Perl implementation, I could see myself doing this. I see a lot of ways that programs like these could benefit from being written in a more structured language.One benefit is actually related to portability: all of what I've seen so far could be handled by Perl's included modules and built-ins. This does require a Perl installation, but the current script requires bash + curl/wget which may not be a given either (for instance, this is less likely to be the case on the BSDs).
Please let me know if there are any changes you would like me to make or if you need more details on something. I had considered adding an
exit 1
toerr()
, but I noticed the exit codes aren't consistent throughoutupdater.sh
so I omitted that.