{"action":"created","issue":{"url":"https://api.github.com/repos/restic/restic/issues/1930","repository_url":"https://api.github.com/repos/restic/restic","labels_url":"https://api.github.com/repos/restic/restic/issues/1930/labels{/name}","comments_url":"https://api.github.com/repos/restic/restic/issues/1930/comments","events_url":"https://api.github.com/repos/restic/restic/issues/1930/events","html_url":"https://github.com/restic/restic/issues/1930","id":348453366,"node_id":"MDU6SXNzdWUzNDg0NTMzNjY=","number":1930,"title":"Simple shell script for installing the latest release","user":{"login":"x86dev","id":3184951,"node_id":"MDQ6VXNlcjMxODQ5NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/3184951?v=4","gravatar_id":"","url":"https://api.github.com/users/x86dev","html_url":"https://github.com/x86dev","followers_url":"https://api.github.com/users/x86dev/followers","following_url":"https://api.github.com/users/x86dev/following{/other_user}","gists_url":"https://api.github.com/users/x86dev/gists{/gist_id}","starred_url":"https://api.github.com/users/x86dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x86dev/subscriptions","organizations_url":"https://api.github.com/users/x86dev/orgs","repos_url":"https://api.github.com/users/x86dev/repos","events_url":"https://api.github.com/users/x86dev/events{/privacy}","received_events_url":"https://api.github.com/users/x86dev/received_events","type":"User","site_admin":false},"labels":[{"id":623697741,"node_id":"MDU6TGFiZWw2MjM2OTc3NDE=","url":"https://api.github.com/repos/restic/restic/labels/feature%20request","name":"feature request","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-08-07T19:19:34Z","updated_at":"2018-08-13T14:42:08Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\njust wanted to share a simple 4-line script to download and install the latest release of restic from Linux shell using cURL to /usr/local/bin:\r\n\r\n```\r\nRESTIC_TAG_LATEST=$(curl --silent \"https://api.github.com/repos/restic/restic/releases/latest\" | grep -Po '\"tag_name\": \"v\\K.*?(?=\")')\r\necho \"Downloading and installing restic v$RESTIC_TAG_LATEST ...\"\r\nRESTIC_URL=https://github.com/restic/restic/releases/download/v${RESTIC_TAG_LATEST}/restic_${RESTIC_TAG_LATEST}_linux_amd64.bz2\r\nsudo curl -L --silent ${RESTIC_URL} | bunzip2 > /usr/local/bin/restic\r\n```\r\n\r\nNote: **Assumes** running on a x86 64-bit (x86_64) machine.\r\n\r\nMight be handy to someone, or even worth for the docs in case there isn't any official PPA."},"comment":{"url":"https://api.github.com/repos/restic/restic/issues/comments/412542420","html_url":"https://github.com/restic/restic/issues/1930#issuecomment-412542420","issue_url":"https://api.github.com/repos/restic/restic/issues/1930","id":412542420,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjU0MjQyMA==","user":{"login":"x86dev","id":3184951,"node_id":"MDQ6VXNlcjMxODQ5NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/3184951?v=4","gravatar_id":"","url":"https://api.github.com/users/x86dev","html_url":"https://github.com/x86dev","followers_url":"https://api.github.com/users/x86dev/followers","following_url":"https://api.github.com/users/x86dev/following{/other_user}","gists_url":"https://api.github.com/users/x86dev/gists{/gist_id}","starred_url":"https://api.github.com/users/x86dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x86dev/subscriptions","organizations_url":"https://api.github.com/users/x86dev/orgs","repos_url":"https://api.github.com/users/x86dev/repos","events_url":"https://api.github.com/users/x86dev/events{/privacy}","received_events_url":"https://api.github.com/users/x86dev/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T14:42:08Z","updated_at":"2018-08-13T14:42:08Z","author_association":"NONE","body":"Oh wow, very nice, fd0! I'll give it a try soon. Cheers! "}}
{"actor":{"display_login":"x86dev"}}