This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ if [ -z "$TRAVIS_TAG" ]; then
4848 cp -rp " ${build_path} /" * " ${git_path} "
4949 _info " copying plugin binaries to ${latest_path} "
5050 cp -rp " ${build_path} /" * " ${latest_path} "
51+
52+ find " ${s3_path} " -type directory -name ' plugins' -exec sh -c ' mv $1/* $1/..' _ {} \; -delete
5153else
5254 set -u
5355 tag_path=" ${s3_path} /${TRAVIS_TAG} "
5961 cp -rp " ${build_path} /" * " ${tag_path} "
6062 _info " copying plugin binaries to ${latest_path} "
6163 cp -rp " ${build_path} /" * " ${latest_path} "
62- fi
63-
64- release_path=" ${SNAP_PATH:- " ${__proj_dir} /release" } "
65- mkdir -p " ${release_path} "
6664
67- _info " moving plugin binaries to ${release_path} "
68-
69- for file in " ${build_path} " /** /* /snap-plugin-* ; do
70- filename=" ${file##*/ } "
71- parent=" ${file%/* } "
72- arch=" ${parent##*/ } "
73- parent=" ${parent%/* } "
74- os=" ${parent##*/ } "
75- cp " ${file} " " ${release_path} /${filename} _${os} _${arch} "
76- done
65+ find " ${s3_path} " -type directory -name ' plugins' -exec sh -c ' mv $1/* $1/..' _ {} \; -delete
66+ fi
7767
7868_debug " $( find " ${build_path} " ) "
7969_debug " $( find " ${s3_path} " ) "
80- _debug " $( find " ${release_path} " ) "
You can’t perform that action at this time.
0 commit comments