{"action":"created","issue":{"url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/162","labels_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/162/comments","events_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/162/events","html_url":"https://github.com/jb-alvarado/media-autobuild_suite/issues/162","id":106225635,"number":162,"title":"TODO: way to keep scripts updated","user":{"login":"wiiaboo","id":111605,"avatar_url":"https://avatars.githubusercontent.com/u/111605?v=3","gravatar_id":"","url":"https://api.github.com/users/wiiaboo","html_url":"https://github.com/wiiaboo","followers_url":"https://api.github.com/users/wiiaboo/followers","following_url":"https://api.github.com/users/wiiaboo/following{/other_user}","gists_url":"https://api.github.com/users/wiiaboo/gists{/gist_id}","starred_url":"https://api.github.com/users/wiiaboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiiaboo/subscriptions","organizations_url":"https://api.github.com/users/wiiaboo/orgs","repos_url":"https://api.github.com/users/wiiaboo/repos","events_url":"https://api.github.com/users/wiiaboo/events{/privacy}","received_events_url":"https://api.github.com/users/wiiaboo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-09-13T16:23:26Z","updated_at":"2015-09-20T19:25:08Z","closed_at":null,"body":"- Use `wget -n` to get files if they have been updated\r\n - easy to code (just grab list of files and check if they exist and if server has newer version)\r\n - depends on file modification timestamps, not on file hashes\r\n - fails if file doesn't exist on server\r\n - fails if local file was edited more recently than on server\r\n\r\n- Use git\r\n  - bit more difficult to code\r\n  - uses file hashes, so doesn't depend on timestamps\r\n  - local changes can be kept by making a commit and then rebasing or by `git stash`ing them or exporting them to a .diff and then the user decides if he wants them applied or not\r\n  - won't work if server is down but can be used to `git checkout` to the last commit if the files have been deleted\r\n  - if the suite already was a clone, it would just check for updates and run as usual"},"comment":{"url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/comments/141822984","html_url":"https://github.com/jb-alvarado/media-autobuild_suite/issues/162#issuecomment-141822984","issue_url":"https://api.github.com/repos/jb-alvarado/media-autobuild_suite/issues/162","id":141822984,"user":{"login":"jb-alvarado","id":2212056,"avatar_url":"https://avatars.githubusercontent.com/u/2212056?v=3","gravatar_id":"","url":"https://api.github.com/users/jb-alvarado","html_url":"https://github.com/jb-alvarado","followers_url":"https://api.github.com/users/jb-alvarado/followers","following_url":"https://api.github.com/users/jb-alvarado/following{/other_user}","gists_url":"https://api.github.com/users/jb-alvarado/gists{/gist_id}","starred_url":"https://api.github.com/users/jb-alvarado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb-alvarado/subscriptions","organizations_url":"https://api.github.com/users/jb-alvarado/orgs","repos_url":"https://api.github.com/users/jb-alvarado/repos","events_url":"https://api.github.com/users/jb-alvarado/events{/privacy}","received_events_url":"https://api.github.com/users/jb-alvarado/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T19:25:08Z","updated_at":"2015-09-20T19:25:08Z","body":"Yes I can confirm that it works.  "}}