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

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 02798a7  Improve file matching when there are multiple release 
candidates locally. (#325)
02798a7 is described below

commit 02798a704b492ba6c9f7fdc5e1858153531c370c
Author: rodric rabbah <[email protected]>
AuthorDate: Sat Feb 8 19:29:15 2020 -0500

    Improve file matching when there are multiple release candidates locally. 
(#325)
---
 tools/upload_to_dist.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/upload_to_dist.sh b/tools/upload_to_dist.sh
index aa9db80..5397382 100755
--- a/tools/upload_to_dist.sh
+++ b/tools/upload_to_dist.sh
@@ -31,7 +31,8 @@ svn update
 
 cd "$RELEASE_SVN_DIR"
 
-for artifact in `ls "$STAGE_SVN_DIR/$pre_release_version"`; do
+for artifact in `find "$STAGE_SVN_DIR/$pre_release_version" -name 
"*${version}*"`; do
+    artifact=$(basename -- "$artifact")
     cp "$STAGE_SVN_DIR/$pre_release_version/$artifact" $artifact
     svn add $artifact
 done

Reply via email to