From f6cc335c192cd76cb79f5d1e88b0610bffc88db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Tue, 21 Jul 2020 19:14:24 -0300 Subject: [PATCH] fixes https://github.com/akretion/odoo-builder/issues/4 (tested) --- bin/build-odoo | 2 +- bin/build-odoo-external | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/build-odoo b/bin/build-odoo index e49ccc7..05a93d7 100755 --- a/bin/build-odoo +++ b/bin/build-odoo @@ -8,7 +8,7 @@ then cp -r -L /builder/links /builder/odoo-addons rm -rf /builder/src/addons/* mv /builder/odoo-addons/* /builder/src/addons - if [[ BUILD_RESTRICT_LANG ]] + if [[ ! -z $BUILD_RESTRICT_LANG ]] then find /builder/src/ -name *.po ! -name $BUILD_RESTRICT_LANG -type f -exec rm -v {} + fi diff --git a/bin/build-odoo-external b/bin/build-odoo-external index 491f910..2c5a8cb 100755 --- a/bin/build-odoo-external +++ b/bin/build-odoo-external @@ -9,7 +9,7 @@ then find . -type f -name ".*" -delete find . -type f -name "oca_dependencies.txt" -delete rm -rf */setup - if [[ $BUILD_RESTRICT_LANG ]] + if [[ ! -z $BUILD_RESTRICT_LANG ]] then find . -name *.po ! -name $BUILD_RESTRICT_LANG -type f -exec rm -v {} + fi