~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.
~
findHEXPLT.sh
~ (renamed tofindPalette.sh
?) attempts to set an environment variable in a calling script (and is intended to be run withsource
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.