On Mon, 24 Jul 2017 18:11:39 -0400 "Aaron W. Swenson" <titanof...@gentoo.org> wrote:
> On 2017-07-24 17:20, Alexis Ballier wrote: > > Hey, > > > > Here is an eclass that would allow me to factor quite a bit of > > redundant code. > > > > … > > if [ -d "${ED}/usr/share/doc/${PF}/${PN}" ] ; then > > It’s always been recommended to me that we should use the [[ … ]] > form. Doesn't make much difference here and I've always been recommending the other way :p (the idea is that you don't get to write the [[ ]] in a /bin/sh script just because you're used to it; if you only do ebuilds or bash, then you don't care, but I definitely do other scripts)