I have added a directory to my
PATH variable to access all my bash scripts. I add the
PATH globally on the system under
/etc/profile.d/custom.sh as follow:
This works, but when I call them in another script they are not found. Only if I use the full path to there location or I add a
source /etc/profile.d/custom.sh at the top of an script they run.
All Scripts have a
#!/usr/bin/env bash at the top.
Is there another way, or have I missed something?