Skip to content

Commit

Permalink
fix bad BUILD_RESTRICT_LANG test + English
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Aug 4, 2023
1 parent 9d45975 commit 7675f7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/build-odoo
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ ak build -c odoo-spec.yaml -f odoo-frozen.yaml
# Remove useless git directory
rm -rf /odoo/src/.git

# Keep only wanted odoo module if defined
# First, we eventually keep only the wanted odoo modules
if [ -z "$(ls -A /odoo/links)" ]; then
echo "No module specify, display all"
echo "No addons set specified, keeping all addons"
else
cp -r -L /odoo/links /odoo/odoo-addons
rm -rf /odoo/src/addons/*
mv /odoo/odoo-addons/* /odoo/src/addons
fi

# Secondly we remove unwanted lang
if [[ BUILD_RESTRICT_LANG ]]
# Second, we remove unwanted lang
if [[ -n "$BUILD_RESTRICT_LANG" ]]
then
find /odoo/src/ -name *.po ! -name $BUILD_RESTRICT_LANG -type f -exec rm -v {} +
fi

0 comments on commit 7675f7b

Please sign in to comment.