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)
This commit is contained in:
parent
236e668510
commit
cbecd6e481
@ -86,7 +86,7 @@ templateName() {
|
|||||||
if [ -n "${1}" ] || [ "X${TEMPLATE_OPTIONS}" == "X" ]; then
|
if [ -n "${1}" ] || [ "X${TEMPLATE_OPTIONS}" == "X" ]; then
|
||||||
local template_options=
|
local template_options=
|
||||||
else
|
else
|
||||||
local template_options=$(printf '%s' ${TEMPLATE_OPTIONS[@]/#/+})
|
local template_options=$(printf '+%s' ${TEMPLATE_OPTIONS[@]})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local template_name="$(templateFlavorPrefix ${template_flavor})${template_flavor}${template_options}"
|
local template_name="$(templateFlavorPrefix ${template_flavor})${template_flavor}${template_options}"
|
||||||
|
Loading…
Reference in New Issue
Block a user