From: | Ulrich Mueller <ulm@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Cc: | "Michał Górny" <mgorny@g.o> | ||
Subject: | Re: [gentoo-dev] [PATCH eutils 1/2] Add dointo && newinto. | ||
Date: | Thu, 16 Aug 2012 20:37:57 | ||
Message-Id: | 20525.23006.307734.925683@a1i15.kph.uni-mainz.de | ||
In Reply to: | [gentoo-dev] [PATCH eutils 1/2] Add dointo && newinto. by "Michał Górny" |
1 | >>>>> On Thu, 16 Aug 2012, Micha³ Górny wrote: |
2 | |
3 | > +dointo() { |
4 | > + [[ ${#} -gt 2 ]] || die 'Synopsis: dointo <directory> <file> [...]' |
5 | > + |
6 | > + local directory=${1} |
7 | > + shift |
8 | > + |
9 | > + ( |
10 | > + insinto "${directory}" |
11 | |
12 | Shouldn't there be checking for errors here, for the case that insinto |
13 | fails? |
14 | |
15 | > + doins "${@}" |
16 | > + ) |
17 | > +} |
18 | |
19 | Ulrich |
Subject | Author |
---|---|
Re: [gentoo-dev] [PATCH eutils 1/2] Add dointo && newinto. | "Michał Górny" <mgorny@g.o> |