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:
Jason Mehring 2015-06-03 23:39:54 -04:00
parent 236e668510
commit cbecd6e481
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

View File

@ -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}"