This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new d86a1d207c Fix copy artifacts to svn command (#31975)
d86a1d207c is described below

commit d86a1d207c2534643b9031702f98e27e3fc095eb
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
---
 .../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,

Reply via email to