On Thu, 16 Aug 2012 22:36:46 +0200
Ulrich Mueller <[email protected]> wrote:

> >>>>> On Thu, 16 Aug 2012, Michał Górny wrote:
>  
> > +dointo() {
> > +   [[ ${#} -gt 2 ]] || die 'Synopsis: dointo <directory>
> > <file> [...]' +
> > +   local directory=${1}
> > +   shift
> > +
> > +   (
> > +           insinto "${directory}"
> 
> Shouldn't there be checking for errors here, for the case that insinto
> fails?

Hmm, I don't even know if insinto should ever fail. And if it does,
then the following doins should fail as well, I guess.

But I see no problem adding '&& \' there if necessary.

> > +           doins "${@}"

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: PGP signature

Reply via email to