From cbecd6e481669a07b28a7e30ca361c6a558e45b2 Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Wed, 3 Jun 2015 23:39:54 -0400 Subject: [PATCH] Fix renaming templates that have a flavor and options such as gnome jessie+whonix-workstation+gnome+standard was not converting name using TEMPLATE_LABEL since the options we getting mangled (+gnomestandard) where thye should have returned (+gnome+standard) --- functions-name.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions-name.sh b/functions-name.sh index cb6fa99..b741fc0 100644 --- a/functions-name.sh +++ b/functions-name.sh @@ -86,7 +86,7 @@ templateName() { if [ -n "${1}" ] || [ "X${TEMPLATE_OPTIONS}" == "X" ]; then local template_options= else - local template_options=$(printf '%s' ${TEMPLATE_OPTIONS[@]/#/+}) + local template_options=$(printf '+%s' ${TEMPLATE_OPTIONS[@]}) fi local template_name="$(templateFlavorPrefix ${template_flavor})${template_flavor}${template_options}"