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)
pull/1/head jm_cbecd6e4
Jason Mehring 9 years ago
parent 236e668510
commit cbecd6e481
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

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

Loading…
Cancel
Save