<div dir="ltr"><div class="gmail_extra">
<br><div class="gmail_quote">On Fri, Oct 10, 2014 at 8:11 PM, Mikael <span dir="ltr"><<a href="mailto:mikael.rcv@gmail.com" target="_blank">mikael.rcv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Could the build script be updated to do a CD to itself, somehow?<div><br></div><div>If not, then perhaps best to start with "echo This script must be invoked with its parent directory as current directory".</div><div><br>I mean, that kind of error could take Alot of time to debug.</div></div><div class="gmail_extra"><br><br></div></blockquote><div><br><br>I generally use<br>$(dirname $0)<br>or some variation, to get the directory of the script in Bash <br></div></div><br></div></div>