From ee42db95ece6818b950a77bb00e0262573a408eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 4 Jun 2018 02:18:34 +0200 Subject: [PATCH] fix functions-name.sh --- functions-name.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions-name.sh b/functions-name.sh index b741fc0..9aed719 100644 --- a/functions-name.sh +++ b/functions-name.sh @@ -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