earthbound19 / _ebDev

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

update script location find command, all scripts #107

Closed earthbound19 closed 3 years ago

earthbound19 commented 4 years ago

update script location variable assignment in all scripts with this more flexible command structure:

pathToRenamePerl=`whereis rename.pl | sed 's/.* \(.*\/rename.pl\).*/\1/g'`

-- which looks for the script after anything and a space. See ftun.sh

earthbound19 commented 3 years ago

Better accomplished with getFullPathToFile.sh, which I suppose I newly developed since I opened this issue? It works around inconsistent results of whereis and which on different platforms.

I may have found all scripts that use whereis and which to try to locate scripts but don't yet use this new script that does it better; I have updated all of them to use it (and have also updated command substitution to $(..) instead of backticks), but need to test them.

earthbound19 commented 3 years ago

I have many uncommitted local changes toward this goal, maybe combined with changes for other goals, which have been sitting locally for long enough to threaten being forgotten about. This is a whole separate issue--they should all be on an experiment branch maybe :| -- get those comitted!

earthbound19 commented 3 years ago

Done.

earthbound19 commented 3 years ago

(Was epic catch-up on uncommited work, making actually useful commit messages, doing tests and tweaks)