From 17e0fa3619aca9512471447ddd428a7a5ea0bd91 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Fri, 23 Sep 2016 14:03:28 +0200 Subject: [PATCH] Be a bit more objective when uploading to our dav server --- gitlab/functions.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gitlab/functions.sh b/gitlab/functions.sh index 9a168ef..4769dbf 100644 --- a/gitlab/functions.sh +++ b/gitlab/functions.sh @@ -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 -- GitLab