1 |
Thanks, pushed all three. |
2 |
|
3 |
Fabian |
4 |
|
5 |
On 04-12-2021 08:53:26 +0100, Etienne Buira wrote: |
6 |
> Using $1 should not be reserved to uninteractive |
7 |
> |
8 |
> v2: |
9 |
> - leave some comment |
10 |
> - not moved down, because the following environment sanitiser unsets |
11 |
> $ROOT |
12 |
> - shortened $subject |
13 |
> |
14 |
> Thanks grobian for review |
15 |
> --- |
16 |
> scripts/bootstrap-prefix.sh | 5 ++--- |
17 |
> 1 file changed, 2 insertions(+), 3 deletions(-) |
18 |
> |
19 |
> diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh |
20 |
> index 1c6c42dad6..a2b1db7235 100755 |
21 |
> --- a/scripts/bootstrap-prefix.sh |
22 |
> +++ b/scripts/bootstrap-prefix.sh |
23 |
> @@ -2322,9 +2322,8 @@ EOF |
24 |
> echo |
25 |
> echo "It seems to me you are '${USER:-$(whoami 2> /dev/null)}' (${UID}), that looks cool to me." |
26 |
> |
27 |
> - # Expect noninteractive users to know what they do: |
28 |
> - # Take EPREFIX from argv1 (=ROOT), not from env var. |
29 |
> - [[ ${TODO} == 'noninteractive' ]] && EPREFIX=${ROOT} |
30 |
> + # In case $ROOT were specified as $1, use it |
31 |
> + [[ -z "${EPREFIX}" ]] && EPREFIX="${ROOT}" |
32 |
> |
33 |
> echo |
34 |
> echo "I'm going to check for some variables in your environment now:" |
35 |
> -- |
36 |
> 2.32.0 |
37 |
> |
38 |
> |
39 |
|
40 |
-- |
41 |
Fabian Groffen |
42 |
Gentoo on a different level |