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?

-- 
Jason Liu


On Fri, Aug 28, 2020 at 10:52 PM Eric F (iEFdev) <[email protected]> wrote:

> Hi,
>
> When downloading/fetching a single (script) file from a Git repo. If I use:
>
> ```
> fetch {
>     file mkdir ${worksrcpath}
>     system -W ${worksrcpath} "curl -qs ${master_sites}/${_file} -o
> ${distpath}/${distname}"
> }
>
> post-checksum {
>     copy ${distpath}/${distname} ${worksrcpath}
> }
> ```
>
> That works, and I can verify against the checksums, etc. But is that an ok
> method? …or is there a better &/or preferred way?
>
> · Eric
>

Reply via email to