apenwarr-redo/docs/cookbook/container/debdownload.fs.do
Avery Pennarun 537866b871 cookbook/container: remove unexplained "exec >&2" lines.
These are often a good idea, but not necessary here and are distracting
to the tutorial, so let's just take them out.

Reported-by: Jeff Stearns <jeff.stearns@gmail.com>
2019-01-14 02:03:19 -05:00

13 lines
354 B
Text

fs=${1%.fs}
# let's *not* delete this directory; it's okay if previously-downloaded
# excess packages hang around in case we need them later.
#rm -rf "$fs"
mkdir -p "$fs"
redo-ifchange debootstrap.options
debootstrap \
--download-only \
--keep-debootstrap-dir \
$(cat debootstrap.options) \
"$fs" >&2
redo-ifchange "$fs/debootstrap/debootstrap.log"