find_sparkle_appcast: clarify response code if not 200

This commit is contained in:
Vítor Galvão
2016-01-12 14:47:22 +00:00
parent 12c401c39a
commit eb00bf28e3
+1 -1
View File
@@ -61,7 +61,7 @@ fi
# vaidate appcast
appcast_http_response="$(curl --silent --head --write-out '%{http_code}' "${appcast_url}" -o /dev/null)"
[[ "${appcast_http_response}" != '200' ]] && appcast_found_error 'returned a non-200 (OK) HTTP response code.'
[[ "${appcast_http_response}" != '200' ]] && appcast_found_error "returned a non-200 (OK) HTTP response code (${appcast_http_response})."
appcast_sha=$(curl --silent "${appcast_url}" | shasum --algorithm 256 | awk '{ print $1 }')
[[ "${appcast_sha}" == 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' ]] && appcast_found_error 'seems to be empty'