mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-01 13:02:51 +00:00
Add curl response to stdout if it fails
Apparently, it must be called with `-v` otherwise it is silent.
This commit is contained in:
parent
1ea7f69715
commit
abecfeafec
@ -248,7 +248,7 @@ checkFile() {
|
||||
url=$url/$(checksum "$file")
|
||||
trace "- Check file via $OPTS: $url"
|
||||
tf1=$($MKTEMP_CMD) tf2=$($MKTEMP_CMD)
|
||||
$CURL_CMD --fail -o "$tf1" --stderr "$tf2" $OPTS -XGET -s "$url"
|
||||
$CURL_CMD --fail -v -o "$tf1" --stderr "$tf2" $OPTS -XGET -s "$url"
|
||||
if [ $? -ne 0 ]; then
|
||||
info "Checking file failed!"
|
||||
cat "$tf1" >&2
|
||||
|
Loading…
x
Reference in New Issue
Block a user