mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-30 05:41:48 +02:00
use "-s" to detect content in temporary curl error logfile
This commit is contained in:
@@ -55,7 +55,7 @@ _request() {
|
||||
curl -sSf "${2}" -d "${3}" 2> "${temperr}"
|
||||
fi
|
||||
|
||||
if [[ ! -z "$(<${temperr})" ]]; then
|
||||
if [[ -s "${temperr}" ]]; then
|
||||
echo " + ERROR: An error occured while sending ${1}-request to ${2} ($(<"${temperr}"))" >&2
|
||||
rm -f "${temperr}"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user