<div dir="ltr">Hi,<div><br></div><div>Stack install does its thing in some hashed directory under .stack-work by default,</div><div>but I want to write to <package-root>/bin as part of the configure process. I'm trying</div><div>to do this as follows:</div><div><br></div><div>-- configure file contains:</div><div>cd $(stack path --project-root)</div><div>echo "..." > .bin/foo.sh</div><div>cd -</div><div><br></div><div>> cd <project-root></div><div>> stack install</div><div><br></div><div>I'm doing this under Windows with the born shell in my path.</div><div><br></div><div>Problem: the use of stack to find the project-root directory is blocked waiting for</div><div>the outer stack to terminate! This may have something to do with Windows</div><div>"Device or resource busy" lock.</div><div><br></div><div>Is there a better way?</div><div><br></div><div>Thanks,</div><div>Dominick</div><div><br></div><div><br></div><div><br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avg.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>