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

Keep curl silent

parent 4142227b
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ doc_upload() {
check_pass DOCUSER
check_pass DOCPASS
log_info "${1} -> ${DOCSERVER}/${2}, via curl..."
curl --location --silent --user "${DOCUSER}:${DOCPASS}" --upload-file ${1} ${DOCSERVER}/${2}
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})"
......
......@@ -34,7 +34,7 @@ run_cmd() {
get_script() {
local curlopt="--location --output ${1}/${2}"
local curlopt="--location --silent --show-error --output ${1}/${2}"
if [ -e ${1}/${2} ]; then #check for updates
local checkopt="${curlopt} --time-cond ${1}/${2} --silent"
checkopt="${checkopt} --write-out %{http_code}"
......
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