1 |
Dnia 2015-02-02, o godz. 10:46:34 |
2 |
Ulrich Mueller <ulm@g.o> napisał(a): |
3 |
|
4 |
> >>>>> On Sun, 1 Feb 2015, I wrote: |
5 |
> |
6 |
> >>>>> On Sun, 1 Feb 2015, Michał Górny wrote: |
7 |
> |
8 |
> >>> + local restore_umask=":" |
9 |
> >>> + if [[ ${EVCS_UMASK} ]]; then |
10 |
> >>> + restore_umask=$(umask -p) |
11 |
> >>> + umask "${EVCS_UMASK}" || die "Bad options to umask: ${EVCS_UMASK}" |
12 |
> >>> + fi |
13 |
> >>> mkdir "${GIT_DIR}" || die |
14 |
> >>> git init --bare || die |
15 |
> >>> + ${restore_umask} || die |
16 |
> |
17 |
> >> And this has ugly implicit pattern expansion. Don't do such things. |
18 |
> >> Ever. Even if you want to split commands. |
19 |
> |
20 |
> > Please show me how this could possibly cause any problem here. |
21 |
> > restore_umask can only have well-defined values, either ":" or |
22 |
> > the output of "umask -p" which is intended to be used this way. |
23 |
> |
24 |
> Anyway, since you don't seem to like the way it is coded, I've |
25 |
> attached an updated patch. |
26 |
|
27 |
Yes, I like the old fashion way a lot more ;). Thanks. |
28 |
|
29 |
-- |
30 |
Best regards, |
31 |
Michał Górny |