update
Some checks are pending
Setup Native Action / native (3.12.7) (push) Waiting to run
Setup Native Action / docker (3.12.7) (push) Waiting to run

This commit is contained in:
hoangvv 2025-02-21 17:19:10 +07:00
parent 1d351e7c8d
commit 6feb5cd153

View File

@ -3,7 +3,7 @@
# Set source and destination repositories
SRC_REPO="/root/dev/NextERP/dev/Viindoo/odoo-18.0"
DEST_REPO="/root/dev/NextERP/dev/odoo18/Odoo18"
LANG="vi"
# Ensure both paths exist
if [ ! -d "$SRC_REPO" ]; then
echo "Error: Source repository does not exist!"
@ -17,7 +17,7 @@ fi
# Find and copy vi.po files while preserving directory structure
cd "$SRC_REPO" || exit
find . -type f -name "vi.po" | while read -r file; do
find . -type f -name "${LANG}.po" | while read -r file; do
# Get the directory path of the file
dir_path=$(dirname "$file")
@ -30,4 +30,4 @@ find . -type f -name "vi.po" | while read -r file; do
echo "Copied: $file -> $DEST_REPO/$dir_path/"
done
echo "All vi.po files copied successfully!"
echo "All ${LANG}.po files copied successfully!"