summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-02-26 13:07:21 -0300
committerRenato Botelho <renato@netgate.com>2016-02-26 13:07:21 -0300
commita326d8a152261e594d85c277a59149f5029984cd (patch)
tree7338981f54c865d9aa055078035af6927598f57e /tools
parentfbd4dfc00b45e48bdb2d185ef819868eb2398e2f (diff)
downloadpfsense-a326d8a152261e594d85c277a59149f5029984cd.zip
pfsense-a326d8a152261e594d85c277a59149f5029984cd.tar.gz
Do not add - for empty flavor
Diffstat (limited to 'tools')
-rw-r--r--tools/builder_common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 508fb48..18c44f4 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -138,7 +138,7 @@ core_pkg_create() {
-i '' \
-e "s,%%PRODUCT_NAME%%,${PRODUCT_NAME},g" \
-e "s,%%PRODUCT_URL%%,${PRODUCT_URL},g" \
- -e "s,%%FLAVOR%%,-${_flavor},g" \
+ -e "s,%%FLAVOR%%,${_flavor:+-}${_flavor},g" \
-e "s,%%FLAVOR_DESC%%, (${_flavor}),g" \
-e "s,%%VERSION%%,${_version},g" \
${_metadir}/* \
OpenPOWER on IntegriCloud