fix functions-name.sh

pull/11/head
Marek Marczykowski-Górecki 6 years ago
parent 0a8e29571f
commit ee42db95ec
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

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

Loading…
Cancel
Save