File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 44from __future__ import annotations
55
66import json
7+ import os
78from pathlib import Path
89import re
910import subprocess
2021def run_download_docker ():
2122 """Run the Docker image to download the translations."""
2223 print ("Running Docker to download latest translations." )
23- run = subprocess .run (
24+ result = subprocess .run (
2425 [
2526 "docker" ,
2627 "run" ,
2728 "-v" ,
2829 f"{ DOWNLOAD_DIR } :/opt/dest/locale" ,
2930 "--rm" ,
31+ "--user" ,
32+ f"{ os .getuid ()} :{ os .getgid ()} " ,
3033 f"lokalise/lokalise-cli-2:{ CLI_2_DOCKER_IMAGE } " ,
3134 # Lokalise command
3235 "lokalise2" ,
@@ -52,7 +55,7 @@ def run_download_docker():
5255 )
5356 print ()
5457
55- if run .returncode != 0 :
58+ if result .returncode != 0 :
5659 raise ExitApp ("Failed to download translations" )
5760
5861
You can’t perform that action at this time.
0 commit comments