<div dir="ltr"><div>If you're fetching a single script file from a Git repo, then can't you simply use the built-in fetch keywords, set 'fetch.type git', and then set the extract phase to be empty?</div><div><br></div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div>-- </div><div>Jason Liu<br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 28, 2020 at 10:52 PM Eric F (iEFdev) <<a href="mailto:eric@iefdev.se" target="_blank">eric@iefdev.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><font face="Arial">Hi,</font></p>
<p><font face="Arial">When downloading/fetching a single (script)
file from a Git repo. If I use:</font></p>
<p><tt>```<br>
fetch {<br>
file mkdir ${worksrcpath}<br>
system -W ${worksrcpath} "curl -qs ${master_sites}/${_file}
-o ${distpath}/${distname}"<br>
}<br>
<br>
post-checksum {<br>
copy ${distpath}/${distname} ${worksrcpath}<br>
}<br>
</tt><tt>```</tt></p>
<p>That works, and I can verify against the checksums, etc. But is
that an ok method? …or is there a better &/or preferred way?</p>
<p>· Eric<br>
</p>
</div>
</blockquote></div>