This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-6-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 2779be2cda0141dd9effea53d54efd497056828d Author: Ephraim Anierobi <[email protected]> AuthorDate: Sat Jun 17 09:34:35 2023 +0100 Fix copy artifacts to svn command (#31975) This fix uses bash -c to run the svn copy command. Tested it and it works (cherry picked from commit d86a1d207c2534643b9031702f98e27e3fc095eb) --- .../src/airflow_breeze/commands/release_command.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/dev/breeze/src/airflow_breeze/commands/release_command.py b/dev/breeze/src/airflow_breeze/commands/release_command.py index 3143d2bebb..57c77d1c19 100644 --- a/dev/breeze/src/airflow_breeze/commands/release_command.py +++ b/dev/breeze/src/airflow_breeze/commands/release_command.py @@ -51,19 +51,17 @@ def create_version_dir(version): def copy_artifacts_to_svn(rc, svn_dev_repo): if confirm_action(f"Copy artifacts to SVN for {rc}?"): + bash_command = f""" + for f in {svn_dev_repo}/{rc}/*; do + svn cp "$f" "$(basename "$f")/" + done + """ + run_command( [ - "for", - "f", - "in", - f"{svn_dev_repo}/{rc}/*", - ";", - "do", - "svn", - "cp", - "$f", - "${$(basename $f)/}", - "done", + "bash", + "-c", + bash_command, ], dry_run_override=DRY_RUN, check=True,
