From eb00bf28e3f4260f9c064487c3cf0b8afc11a3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Galv=C3=A3o?= Date: Tue, 12 Jan 2016 14:47:22 +0000 Subject: [PATCH] find_sparkle_appcast: clarify response code if not 200 --- developer/bin/find_sparkle_appcast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer/bin/find_sparkle_appcast b/developer/bin/find_sparkle_appcast index d34793326a..30c7f6a43a 100755 --- a/developer/bin/find_sparkle_appcast +++ b/developer/bin/find_sparkle_appcast @@ -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'