scripts
scripts copied to clipboard
firmware-util.sh mixes 'auto update' functionality with actual script functionality
The firmware-util.sh
script performs two unrelated tasks:
- Downloads the latest version of the main script files
- Sets up the execution environment and runs the main script code
This presents a problem when trying to patch any of the 3 main scripts (firmware, functions, or sources) -- for example, to fix an issue -- as one must also patch the firmware-util.sh
to not overwrite the patched version with the version from the master
branch.
I'm not seeing a problem, i see a feature. The whole point is to prevent the use of stale files. If one feels the need to patch my scripts, then editing firmware-util.sh not to overwrite those changes seems like a trivial burden. Or am I missing something?