snap_preseed: Handle SNAP_NO_VALIDATE_SEED being unset

Some builds run with `set -u` and were broken due to this.
amd64-kernel-on-i386
Iain Lane 5 years ago
parent bf6d8253ea
commit 2d19a9446e
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

@ -656,7 +656,7 @@ snap_preseed() {
# i.e. snaps with bases need to add bases first etc # i.e. snaps with bases need to add bases first etc
# #
# Skip validation by setting SNAP_NO_VALIDATE_SEED=1. # Skip validation by setting SNAP_NO_VALIDATE_SEED=1.
if [ -z "${SNAP_NO_VALIDATE_SEED}" ]; then if [ -z "${SNAP_NO_VALIDATE_SEED:-}" ]; then
snap_validate_seed "${CHROOT_ROOT}" snap_validate_seed "${CHROOT_ROOT}"
fi fi
} }

Loading…
Cancel
Save