From 8451c45931dd9a931ef0f07e9eb256a839486ef3 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sun, 3 Nov 2013 00:58:25 -0700 Subject: [PATCH] Fixed home directory location inside archives --- Scripts/update_feed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index b53d7b237..e3f8eea9a 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -31,7 +31,7 @@ appcast_revision_code = appcast_revision_split[2] archivedir = "~/Library/Developer/Xcode/Archives" latest_archive = %x[find #{archivedir} -type d -name 'Cog *.xcarchive' -print0 | xargs -0 stat -f "%m %N" -t "%Y" | sort -r | head -n1 | sed -E 's/^[0-9]+ //'].rstrip - app_path = "#{latest_archive}/Products/Users/#{ENV['USER']}/Applications" + app_path = "#{latest_archive}/Products#{ENV['HOME']}/Applications" plist = open("#{app_path}/Cog.app/Contents/Info.plist") plistdoc = Document.new(plist)