diff options
author | Timo Weingärtner <timo@tiwe.de> | 2015-01-22 20:34:42 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2015-01-22 20:34:42 +0100 |
commit | 0e971e742afad1669dbae0d75eead51e76af1899 (patch) | |
tree | cba9b2548802a12dc0bb8523a12a6f4d05b6b142 | |
parent | 4a043c6de09658a97dff8ec2d7b311c4f4bce3af (diff) | |
download | openssh-known-hosts-0e971e742afad1669dbae0d75eead51e76af1899.tar.gz |
plugins/curl: fix silent wrong output on HTTP 404
-rwxr-xr-x | plugins/curl | 4 |
1 files changed, 2 insertions, 2 deletions
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: |