From 0f6cdceb618fcbc3ee4e9283984c636875972adb Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Tue, 10 Feb 2015 09:54:40 -0500 Subject: [PATCH] If template_flavor only contains a '+'; send back $DIST --- functions-name.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions-name.sh b/functions-name.sh index b2c3b0c..229a1c7 100644 --- a/functions-name.sh +++ b/functions-name.sh @@ -22,7 +22,12 @@ templateFlavorPrefix() { fi done - echo "${DIST}${template_flavor:++}" + # If template_flavor only contains a '+'; send back $DIST + if [ "${template_flavor}" == "+" ]; then + echo "${DIST}" + else + echo "${DIST}${template_flavor:++}" + fi } templateNameDist() {