Builder for live images based on Debian
Go to file
Lyndon Brown c54cc2c497 echo: really ensure log messages go to stdout
all echo helpers are used as logging functions with output to go to the
terminal. when used in functions that are designed to return a string
though the message printed would get incorrectly captured.

the previous fix done in e3a987d977 was
stupidly flawed; somehow my testing led me to mistakenly believe that
was adequate, but retesting proves that it was not.

here we create a new FD  linked to stdout to output the messages on,
which testing shows works as I had actually intended it.

e.g. here:
```
Foo () { if [ "$1" = "a" ]; then printf "foo\n"; else printf "error\n"; fi; }
```

we get:
```
~$ Foo a
foo
~$ Foo b
error
~$ XX="$(Foo a)"
~$ echo "${XX}"
foo
~$ XX="$(Foo b)"
~$ echo "${XX}"
error
```

and as demonstrated, "error" got incorrectly captured by in the variable

whereas here:
```
exec 3>&1
Foo () { if [ "$1" = "a" ]; then printf "foo\n"; else printf "error\n" >&3; fi; }
```

it is different in the last case:
```
~$ XX="$(Foo b)"
error
~$ echo "${XX}"

```

the error successfully makes it to the terminal, and the variable is an
empty string (with a newline automatically printed).

Gbp-Dch: Short
2020-03-13 13:50:35 +00:00
data/debian-cd We should add buster for release 2019-02-17 14:51:24 +00:00
debian CI: fix deploy stage 2020-03-12 14:23:56 +00:00
examples amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
frontend Revert "Test for executables: replace 'which' with more robust 'command -v'" 2020-03-12 12:32:26 +00:00
functions echo: really ensure log messages go to stdout 2020-03-13 13:50:35 +00:00
manpages Fix typo in lb_config.1 manpage 2020-03-12 12:49:28 +00:00
scripts debootstrap: use --force-check-gpg 2020-03-12 14:44:49 +00:00
share Revert "Test for executables: replace 'which' with more robust 'command -v'" 2020-03-12 12:32:26 +00:00
COPYING Switching to GPL3+. 2011-03-09 18:22:29 +01:00
Makefile fix capitalisation of some output messages 2020-03-05 20:36:54 +00:00