summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorRaphaël Hertzog <raphael@offensive-security.com>2020-01-22 15:00:06 +0100
committerRaphaël Hertzog <raphael@offensive-security.com>2020-01-22 15:00:06 +0100
commitbe5aaa0c51ffda29eda3367ea4f7f699dde5e9b2 (patch)
treebc78367feaa24721ac4a927f69665dee96f706cf /functions/defaults.sh
parent1e7f3d53df3693e3e38d058edee6f2ae6ce19294 (diff)
downloadvyos-live-build-be5aaa0c51ffda29eda3367ea4f7f699dde5e9b2.tar.gz
vyos-live-build-be5aaa0c51ffda29eda3367ea4f7f699dde5e9b2.zip
Get rid of extraneous whitespace showing up in syslinux menu
The leading space ends up in the FLAVOUR substitution in live.cfg.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index a23424f92..91350ab43 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -485,7 +485,7 @@ Set_defaults ()
for FLAVOUR in ${LB_LINUX_FLAVOURS_WITH_ARCH}
do
ARCH_FILTERED_FLAVOUR="$(echo ${FLAVOUR} | awk -F':' '{print $1}')"
- LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS} ${ARCH_FILTERED_FLAVOUR}"
+ LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:+$LB_LINUX_FLAVOURS }${ARCH_FILTERED_FLAVOUR}"
done