Skip to content

Commit f8a2c7a

Browse files
authored
chore: fix folder path and exception exit (#214)
1 parent 589c028 commit f8a2c7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/publish-rpm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ func_repo_upload() {
109109
# ${1} - local path
110110
# ${2} - bucket name
111111
# ${3} - COS path
112-
coscli -e "${VAR_COS_ENDPOINT}" rm -r -f "cos://${2}/packages/${3}"
112+
coscli -e "${VAR_COS_ENDPOINT}" rm -r -f "cos://${2}/packages/${3}" || true
113113
coscli -e "${VAR_COS_ENDPOINT}" cp -r "${1}" "cos://${2}/packages/${3}"
114114
}
115115

116116
func_repo_publish() {
117117
# ${1} - CI bucket
118118
# ${2} - repo publish bucket
119119
# ${3} - COS path
120-
coscli -e "${VAR_COS_ENDPOINT}" rm -r -f "cos://${2}/packages/${3}"
121-
coscli -e "${VAR_COS_ENDPOINT}" cp -r "cos://${1}/packages/${3}" "cos://${2}/packages"
120+
coscli -e "${VAR_COS_ENDPOINT}" rm -r -f "cos://${2}/packages/${3}" || true
121+
coscli -e "${VAR_COS_ENDPOINT}" cp -r "cos://${1}/packages/${3}" "cos://${2}/packages/${3}"
122122
}
123123

124124
# =======================================

0 commit comments

Comments
 (0)