I have a root directory.
In there I have ./bin/
In ./bin/
I have some bash scripts like:
launch_server.sh port=3000
These scripts must be ran from ./bin, that is, the working directory must be:
home/blah/whereever/root/bin
however, I would like to do:
cd home/blah/whereever/root/
start launch_server.sh port=3000
That last line would set the working directory temporarily to ./bin/
and would execute my script found in ./bin
and pass that script any arguments such as port=3000
Is this possible? What is the most convenient way I can launch my bin scripts from the root directory?
The reason is the paths need to stay relative, so I can't hardcode anything