earthbound19 / _ebDev

Various tools, mostly custom-made for art development.
2 stars 2 forks source link

better palette path find in scripts #115

Closed earthbound19 closed 3 years ago

earthbound19 commented 4 years ago

~findHEXPLT.sh~ (renamed to findPalette.sh?) attempts to set an environment variable in a calling script (and is intended to be run with source before it so that the set variable persists in the calling script, as the script is called in the same shell instead of a subshell), but comments in the script say it's broken (so evidently it doesn't work in all setups).

This is unecessary, as it could instead either print the full path to the found script, or print nothing, and calling scripts could simply fail if nothing is printed (and they can store the print in a variable).

Update to do that, and update calling scripts to use it that way.

earthbound19 commented 3 years ago

Long since done, I think. Description of findPalette.sh: "Prints the full path to a .hexplt file if found, else prints nothing."