Merge pull request #17063 from tsparber/fix-wording-find-sparkle

find_sparkle_appcast: Suggest stanza location
This commit is contained in:
Vítor Galvão 2016-01-15 23:32:55 +00:00
commit a7cbcdd49b
1 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ if [[ -z "${appcast_url}" ]]; then
exit 0 exit 0
fi fi
# vaidate appcast # validate appcast
appcast_http_response="$(curl --silent --head --write-out '%{http_code}' "${appcast_url}" -o /dev/null)" 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})" [[ "${appcast_http_response}" != '200' ]] && appcast_found_error "returned a non-200 (OK) HTTP response code (${appcast_http_response})"
@ -67,10 +67,10 @@ appcast_checkpoint=$(curl --silent --compressed "${appcast_url}" | sed 's|<pubDa
[[ "${appcast_checkpoint}" == 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' ]] && appcast_found_error 'seems to be empty' [[ "${appcast_checkpoint}" == 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' ]] && appcast_found_error 'seems to be empty'
# output appcast # output appcast
echo "A Sparkle appcast was found. You sould add it to your cask as echo "A Sparkle appcast was found. You should add it to your cask as
appcast '${appcast_url}', appcast '${appcast_url}',
:checkpoint => '${appcast_checkpoint}' :checkpoint => '${appcast_checkpoint}'
You should likely also add 'auto_updates true'" You should likely also add 'auto_updates true'"