4 ms·
(cd ./some/path; ./script.sh)
by bradwood 4y ago
(cd ./some/path; ./script.sh)
- eikenberry 4y agoIMO it's easier just to write your scripts so they don't rely on the directory context for running correctly. Usually it's just a matter of taking your relative path using script and sticking something like this at the top and you're good. cd "$(dirname $0)"