Commit 0c6e8b0b authored by intrigeri's avatar intrigeri

auto/config: use syntax compatible with "set -e" (refs: #15107).

This script has "set -e" already. I think that's currently ignored due to the
way live-build runs it, but let's not create confusion by writing code in there
that will break whenever "set -e" becomes effective. Besides, we try to use
"set -e" everywhere so let's write code that's compatible with it, which can be
useful e.g. if we copy'n'paste code around.
parent 9c4d621a
......@@ -101,8 +101,9 @@ RUN_LB_CONFIG="lb config noauto"
$RUN_LB_CONFIG --distribution stretch ${@}
# set up everything for time-based snapshots:
[ "${APT_SNAPSHOT_SERIAL:-}" ] && \
echo "Using latest APT snapshots serial: ${APT_SNAPSHOT_SERIAL}."
if [ -n "${APT_SNAPSHOT_SERIAL:-}" ]; then
echo "Using latest APT snapshots serial: ${APT_SNAPSHOT_SERIAL}."
apt-snapshots-serials prepare-build "${APT_SNAPSHOT_SERIAL:-}"
DEBIAN_MIRROR="$(apt-mirror debian)"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment