Skip to content

Commit

Permalink
fix(chore): coscli cp usage (marmotedu#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
yandongxiao authored Nov 2, 2022
1 parent b5ff3cc commit 340d586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function iam::release::updload_tarballs() {
for file in $(ls ${RELEASE_TARS}/*)
do
if [ "${COSTOOL}" == "coscli" ];then
coscli cp "${file}" "cos://${BUCKET}/${COS_RELEASE_DIR}/${IAM_GIT_VERSION}/"
coscli cp "${file}" "cos://${BUCKET}/${COS_RELEASE_DIR}/latest/"
coscli cp "${file}" "cos://${BUCKET}/${COS_RELEASE_DIR}/${IAM_GIT_VERSION}/${file##*/}"
coscli cp "${file}" "cos://${BUCKET}/${COS_RELEASE_DIR}/latest/${file##*/}"
else
coscmd upload "${file}" "${COS_RELEASE_DIR}/${IAM_GIT_VERSION}/"
coscmd upload "${file}" "${COS_RELEASE_DIR}/latest/"
Expand Down

0 comments on commit 340d586

Please sign in to comment.