update
This commit is contained in:
parent
1d351e7c8d
commit
6feb5cd153
@ -3,7 +3,7 @@
|
|||||||
# Set source and destination repositories
|
# Set source and destination repositories
|
||||||
SRC_REPO="/root/dev/NextERP/dev/Viindoo/odoo-18.0"
|
SRC_REPO="/root/dev/NextERP/dev/Viindoo/odoo-18.0"
|
||||||
DEST_REPO="/root/dev/NextERP/dev/odoo18/Odoo18"
|
DEST_REPO="/root/dev/NextERP/dev/odoo18/Odoo18"
|
||||||
|
LANG="vi"
|
||||||
# Ensure both paths exist
|
# Ensure both paths exist
|
||||||
if [ ! -d "$SRC_REPO" ]; then
|
if [ ! -d "$SRC_REPO" ]; then
|
||||||
echo "Error: Source repository does not exist!"
|
echo "Error: Source repository does not exist!"
|
||||||
@ -17,7 +17,7 @@ fi
|
|||||||
|
|
||||||
# Find and copy vi.po files while preserving directory structure
|
# Find and copy vi.po files while preserving directory structure
|
||||||
cd "$SRC_REPO" || exit
|
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
|
# Get the directory path of the file
|
||||||
dir_path=$(dirname "$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/"
|
echo "Copied: $file -> $DEST_REPO/$dir_path/"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "All vi.po files copied successfully!"
|
echo "All ${LANG}.po files copied successfully!"
|
Loading…
Reference in New Issue
Block a user