From 0e971e742afad1669dbae0d75eead51e76af1899 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Thu, 22 Jan 2015 20:34:42 +0100 Subject: plugins/curl: fix silent wrong output on HTTP 404 --- plugins/curl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/curl') diff --git a/plugins/curl b/plugins/curl index 93be854..9c47601 100755 --- a/plugins/curl +++ b/plugins/curl @@ -12,12 +12,12 @@ set -e if [ "${SIGURL}" ]; then - curl -Rz "./current" -m 300 ${CURL_OPTIONS} -o new.sig "${SIGURL}" -o new "${URL}" + curl -fRz "./current" -m 300 ${CURL_OPTIONS} -o new.sig "${SIGURL}" -o new "${URL}" [ -e new ] || exit 0 gpgv --keyring "${KEYRING}" --status-fd 2 new.sig || exit 1 # return 1 because it's not clear what other codes may used else - curl -Rz "./current" -m 300 ${CURL_OPTIONS} -o new "${URL}" + curl -fRz "./current" -m 300 ${CURL_OPTIONS} -o new "${URL}" fi # vim:set ft=sh: -- cgit v1.2.3