From 59ab4ccdb54c20f6ff5c84fb4284001ba83ea160 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 31 Jul 2022 23:38:07 -0700 Subject: [PATCH] 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 --- Scripts/update_feed.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index 93577e456..b25b8228c 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -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