3 ms·
This would have a problem if the script is symlinked.
by KolenCh 3y ago
This would have a problem if the script is symlinked.
- michaelcampbell 3y agocd $(dirname $(readlink -f "$0")) # ?
- ray_v 3y agoThanks! that's good to keep in mind for sure. I use this mainly for running something out of cron where i want to make sure it gets placed into that directory since many of the scripts i have are written to expect that.