From d542e8e4a08467ef9b6237b9fcbd9166c8c99e8b Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Mon, 13 Jul 2020 13:05:43 -0700 Subject: [PATCH] functions: fix unbound variable --- live-build/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/functions b/live-build/functions index dcfa46c9..05003d19 100644 --- a/live-build/functions +++ b/live-build/functions @@ -640,7 +640,7 @@ snap_preseed() { # Seed from the specified channel (e.g. core18 latest/stable) # Or Channel endcoded in the snap name (e.g. lxd=4.0/stable/ubuntu-20.04) # Or Ubuntu policy default channel latest/stable/ubuntu-$(release_ver) - local CHANNEL=$3 + local CHANNEL=${3:-} if [ -z "$CHANNEL" ]; then case $2 in *=*)