Browse Source

Fix oops in update script.

master
Christopher Snowhill 2 years ago
parent
commit
df85ce80cd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Scripts/update_feed.rb

+ 2
- 2
Scripts/update_feed.rb View File

@@ -27,8 +27,8 @@ sortedchannels = channel.search('./item').sort_by{ |i| Time.parse(i.at('pubDate'
#Get the latest revision from the appcast
appcast_enclosure = sortedchannels[0].search('./enclosure').first
appcast_url = appcast_enclosure.attribute('url');
appcast_revision = appcast_enclosure.attribute_with_ns('version', sparkle);
appcast_revision_split = appcast_revision.to_s.split( /-/ )
appcast_revision = appcast_enclosure.attribute_with_ns('version', sparkle).to_s;
appcast_revision_split = appcast_revision.split( /-/ )
appcast_revision_code = appcast_revision_split[2]
appcast_revision_split = appcast_revision_code.split( /g/ )
appcast_revision_code = appcast_revision_split[1]


Loading…
Cancel
Save