diff --git a/gitlab/functions.sh b/gitlab/functions.sh index f0264be55b84d76cf6e669e8edf1f42fd4c6a113..00fa382e8f2ae6426c75e376ed9f14453b87c680 100644 --- a/gitlab/functions.sh +++ b/gitlab/functions.sh @@ -166,7 +166,7 @@ setup_deploy() { doc_upload() { log_info "curl: ${1} -> ${DOCSERVER}/${2}..." local code=`curl --location --silent --fail --write-out "%{http_code}" --user "${DOCUSER}:${DOCPASS}" --upload-file ${1} ${DOCSERVER}/${2}` - if [[ ${code} == 204 || ${code} == 201 ]]; then + if [[ ${code} == *204 || ${code} == *201 ]]; then log_info "Successfully uploaded ${1} with curl" else log_error "Curl command finished with an error condition (code=${code}):"