Fix update script

This fixes the update URL and parameter handling. Seems there
was an extraneous newline returned by the security command.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
main
Christopher Snowhill 2022-07-31 23:38:07 -07:00
parent 4d3274362c
commit 59ab4ccdb5
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ if 1 #appcast_revision < latest_revision
%x[aws cloudfront create-invalidation --distribution-id E2O8QDAIFS424Q --paths "/#{feed}.xml"]
#Send web hook to update site
update_uri = %x[security find-generic-password -w -a #{ENV['LOGNAME']} -s cogupdateurl]
update_uri = %x[security find-generic-password -w -a #{ENV['LOGNAME']} -s cogupdateurl].chop
update_parameter = URI.escape(latest_revision)
%x[curl -X POST "#{update_uri}?trigger_title=#{update_parameter}"]
%x[curl -X POST '#{update_uri}?trigger_title=#{update_parameter}']
end