fix functions-name.sh

This commit is contained in:
Marek Marczykowski-Górecki 2018-06-04 02:18:34 +02:00
parent 0a8e29571f
commit ee42db95ec
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -71,7 +71,7 @@ templateNameDist() {
template_name="$(templateName)" && dist_name="${template_name}"
# Automaticly correct name length if it's greater than 32 chars
dist_name="$(templateNameFixLength ${template_name})"
dist_name="$(templateNameFixLength ${dist_name})"
# Remove and '+' characters from name since they are invalid for name
dist_name="${dist_name//+/-}"
@ -79,7 +79,7 @@ templateNameDist() {
}
templateName() {
local template_flavor=${1-${TEMPLATE_FLAVOR}}
local template_flavor=${1:-${TEMPLATE_FLAVOR}}
retval=1 # Default is 1; mean no replace happened
# Only apply options if $1 was not passed