Skip to content
Snippets Groups Projects
Commit 17e0fa36 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Be a bit more objective when uploading to our dav server

parent 1e8096b3
No related branches found
No related tags found
No related merge requests found
......@@ -94,14 +94,7 @@ doc_upload() {
check_env DOCSERVER
check_pass DOCUSER
check_pass DOCPASS
log_info "${1} -> ${DOCSERVER}/${2}, via curl..."
curl --location --silent --show-error --user "${DOCUSER}:${DOCPASS}" --upload-file ${1} ${DOCSERVER}/${2}
local status=$?
if [ ${status} != 0 ]; then
log_error "Curl command finished with an error condition (status=${status})"
exit ${status}
fi
log_info "Successfully uploaded ${1} with curl"
run_cmd curl --location --silent --show-error --user "${DOCUSER}:${DOCPASS}" --upload-file ${1} ${DOCSERVER}/${2}
}
check_env PYTHON_VERSION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment