On Fri, Sep 06, 2024 at 11:10:16 +0000, Andy Smith wrote: > Is there a reason not to just make these scripts cd to their own > directory so the caller doesn't have to care? > > cd "$(dirname "$0")"
https://mywiki.wooledge.org/BashFAQ/028
On Fri, Sep 06, 2024 at 11:10:16 +0000, Andy Smith wrote: > Is there a reason not to just make these scripts cd to their own > directory so the caller doesn't have to care? > > cd "$(dirname "$0")"
https://mywiki.wooledge.org/BashFAQ/028