{"action":"created","comment":{"url":"https://api.github.com/repos/draios/sysdig/pulls/comments/25033597","id":25033597,"diff_hunk":"@@ -144,8 +144,11 @@ if [ -f /etc/debian_version ]; then\n \tesac\n \n elif [ -f /etc/system-release-cpe ]; then\n-\tDISTRO=$(cat /etc/system-release-cpe | cut -d':' -f3)\n-\tVERSION=$(cat /etc/system-release-cpe | cut -d':' -f5 | cut -d'.' -f1 | sed 's/[^0-9]*//g')\n+\tIFS=':' read -ra RELEASE <<< $(</etc/system-release-cpe)","path":"scripts/install-sysdig.in","position":6,"original_position":6,"commit_id":"bd37f03478b20278706977879bcb81d9d275afbc","original_commit_id":"bd37f03478b20278706977879bcb81d9d275afbc","user":{"login":"Hefeweizen","id":3291490,"avatar_url":"https://avatars.githubusercontent.com/u/3291490?v=3","gravatar_id":"","url":"https://api.github.com/users/Hefeweizen","html_url":"https://github.com/Hefeweizen","followers_url":"https://api.github.com/users/Hefeweizen/followers","following_url":"https://api.github.com/users/Hefeweizen/following{/other_user}","gists_url":"https://api.github.com/users/Hefeweizen/gists{/gist_id}","starred_url":"https://api.github.com/users/Hefeweizen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hefeweizen/subscriptions","organizations_url":"https://api.github.com/users/Hefeweizen/orgs","repos_url":"https://api.github.com/users/Hefeweizen/repos","events_url":"https://api.github.com/users/Hefeweizen/events{/privacy}","received_events_url":"https://api.github.com/users/Hefeweizen/received_events","type":"User","site_admin":false},"body":"This seems a more convoluted way of saying ```read -ra RELEASE < /etc/system-release-cpe```.  The here-string form seems to trim some white space, though.  Care to walk me through the reasoning?\r\n\r\nThanks","created_at":"2015-02-19T22:38:00Z","updated_at":"2015-02-19T22:38:00Z","html_url":"https://github.com/draios/sysdig/pull/325#discussion_r25033597","pull_request_url":"https://api.github.com/repos/draios/sysdig/pulls/325","_links":{"self":{"href":"https://api.github.com/repos/draios/sysdig/pulls/comments/25033597"},"html":{"href":"https://github.com/draios/sysdig/pull/325#discussion_r25033597"},"pull_request":{"href":"https://api.github.com/repos/draios/sysdig/pulls/325"}}},"pull_request":{"url":"https://api.github.com/repos/draios/sysdig/pulls/325","id":29653355,"html_url":"https://github.com/draios/sysdig/pull/325","diff_url":"https://github.com/draios/sysdig/pull/325.diff","patch_url":"https://github.com/draios/sysdig/pull/325.patch","issue_url":"https://api.github.com/repos/draios/sysdig/issues/325","number":325,"state":"open","locked":false,"title":"Minor cleanup in sysdig.in script","user":{"login":"pradeepchhetri","id":2232667,"avatar_url":"https://avatars.githubusercontent.com/u/2232667?v=3","gravatar_id":"","url":"https://api.github.com/users/pradeepchhetri","html_url":"https://github.com/pradeepchhetri","followers_url":"https://api.github.com/users/pradeepchhetri/followers","following_url":"https://api.github.com/users/pradeepchhetri/following{/other_user}","gists_url":"https://api.github.com/users/pradeepchhetri/gists{/gist_id}","starred_url":"https://api.github.com/users/pradeepchhetri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradeepchhetri/subscriptions","organizations_url":"https://api.github.com/users/pradeepchhetri/orgs","repos_url":"https://api.github.com/users/pradeepchhetri/repos","events_url":"https://api.github.com/users/pradeepchhetri/events{/privacy}","received_events_url":"https://api.github.com/users/pradeepchhetri/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-19T22:02:27Z","updated_at":"2015-02-19T22:38:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed02b1639aae103b14a7cc95236d0e6a61ee3ae5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/draios/sysdig/pulls/325/commits","review_comments_url":"https://api.github.com/repos/draios/sysdig/pulls/325/comments","review_comment_url":"https://api.github.com/repos/draios/sysdig/pulls/comments/{number}","comments_url":"https://api.github.com/repos/draios/sysdig/issues/325/comments","statuses_url":"https://api.github.com/repos/draios/sysdig/statuses/bd37f03478b20278706977879bcb81d9d275afbc","head":{"label":"pradeepchhetri:dev","ref":"dev","sha":"bd37f03478b20278706977879bcb81d9d275afbc","user":{"login":"pradeepchhetri","id":2232667,"avatar_url":"https://avatars.githubusercontent.com/u/2232667?v=3","gravatar_id":"","url":"https://api.github.com/users/pradeepchhetri","html_url":"https://github.com/pradeepchhetri","followers_url":"https://api.github.com/users/pradeepchhetri/followers","following_url":"https://api.github.com/users/pradeepchhetri/following{/other_user}","gists_url":"https://api.github.com/users/pradeepchhetri/gists{/gist_id}","starred_url":"https://api.github.com/users/pradeepchhetri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradeepchhetri/subscriptions","organizations_url":"https://api.github.com/users/pradeepchhetri/orgs","repos_url":"https://api.github.com/users/pradeepchhetri/repos","events_url":"https://api.github.com/users/pradeepchhetri/events{/privacy}","received_events_url":"https://api.github.com/users/pradeepchhetri/received_events","type":"User","site_admin":false},"repo":{"id":30784527,"name":"sysdig","full_name":"pradeepchhetri/sysdig","owner":{"login":"pradeepchhetri","id":2232667,"avatar_url":"https://avatars.githubusercontent.com/u/2232667?v=3","gravatar_id":"","url":"https://api.github.com/users/pradeepchhetri","html_url":"https://github.com/pradeepchhetri","followers_url":"https://api.github.com/users/pradeepchhetri/followers","following_url":"https://api.github.com/users/pradeepchhetri/following{/other_user}","gists_url":"https://api.github.com/users/pradeepchhetri/gists{/gist_id}","starred_url":"https://api.github.com/users/pradeepchhetri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradeepchhetri/subscriptions","organizations_url":"https://api.github.com/users/pradeepchhetri/orgs","repos_url":"https://api.github.com/users/pradeepchhetri/repos","events_url":"https://api.github.com/users/pradeepchhetri/events{/privacy}","received_events_url":"https://api.github.com/users/pradeepchhetri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pradeepchhetri/sysdig","description":"a system exploration and troubleshooting tool","fork":true,"url":"https://api.github.com/repos/pradeepchhetri/sysdig","forks_url":"https://api.github.com/repos/pradeepchhetri/sysdig/forks","keys_url":"https://api.github.com/repos/pradeepchhetri/sysdig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pradeepchhetri/sysdig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pradeepchhetri/sysdig/teams","hooks_url":"https://api.github.com/repos/pradeepchhetri/sysdig/hooks","issue_events_url":"https://api.github.com/repos/pradeepchhetri/sysdig/issues/events{/number}","events_url":"https://api.github.com/repos/pradeepchhetri/sysdig/events","assignees_url":"https://api.github.com/repos/pradeepchhetri/sysdig/assignees{/user}","branches_url":"https://api.github.com/repos/pradeepchhetri/sysdig/branches{/branch}","tags_url":"https://api.github.com/repos/pradeepchhetri/sysdig/tags","blobs_url":"https://api.github.com/repos/pradeepchhetri/sysdig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pradeepchhetri/sysdig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pradeepchhetri/sysdig/git/refs{/sha}","trees_url":"https://api.github.com/repos/pradeepchhetri/sysdig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pradeepchhetri/sysdig/statuses/{sha}","languages_url":"https://api.github.com/repos/pradeepchhetri/sysdig/languages","stargazers_url":"https://api.github.com/repos/pradeepchhetri/sysdig/stargazers","contributors_url":"https://api.github.com/repos/pradeepchhetri/sysdig/contributors","subscribers_url":"https://api.github.com/repos/pradeepchhetri/sysdig/subscribers","subscription_url":"https://api.github.com/repos/pradeepchhetri/sysdig/subscription","commits_url":"https://api.github.com/repos/pradeepchhetri/sysdig/commits{/sha}","git_commits_url":"https://api.github.com/repos/pradeepchhetri/sysdig/git/commits{/sha}","comments_url":"https://api.github.com/repos/pradeepchhetri/sysdig/comments{/number}","issue_comment_url":"https://api.github.com/repos/pradeepchhetri/sysdig/issues/comments/{number}","contents_url":"https://api.github.com/repos/pradeepchhetri/sysdig/contents/{+path}","compare_url":"https://api.github.com/repos/pradeepchhetri/sysdig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pradeepchhetri/sysdig/merges","archive_url":"https://api.github.com/repos/pradeepchhetri/sysdig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pradeepchhetri/sysdig/downloads","issues_url":"https://api.github.com/repos/pradeepchhetri/sysdig/issues{/number}","pulls_url":"https://api.github.com/repos/pradeepchhetri/sysdig/pulls{/number}","milestones_url":"https://api.github.com/repos/pradeepchhetri/sysdig/milestones{/number}","notifications_url":"https://api.github.com/repos/pradeepchhetri/sysdig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pradeepchhetri/sysdig/labels{/name}","releases_url":"https://api.github.com/repos/pradeepchhetri/sysdig/releases{/id}","created_at":"2015-02-14T02:15:52Z","updated_at":"2015-02-19T22:01:07Z","pushed_at":"2015-02-19T22:01:06Z","git_url":"git://github.com/pradeepchhetri/sysdig.git","ssh_url":"git@github.com:pradeepchhetri/sysdig.git","clone_url":"https://github.com/pradeepchhetri/sysdig.git","svn_url":"https://github.com/pradeepchhetri/sysdig","homepage":null,"size":5216,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"draios:dev","ref":"dev","sha":"a3ad5c6bc6bb82d153a048840aa36a5dd365bce7","user":{"login":"draios","id":5068817,"avatar_url":"https://avatars.githubusercontent.com/u/5068817?v=3","gravatar_id":"","url":"https://api.github.com/users/draios","html_url":"https://github.com/draios","followers_url":"https://api.github.com/users/draios/followers","following_url":"https://api.github.com/users/draios/following{/other_user}","gists_url":"https://api.github.com/users/draios/gists{/gist_id}","starred_url":"https://api.github.com/users/draios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draios/subscriptions","organizations_url":"https://api.github.com/users/draios/orgs","repos_url":"https://api.github.com/users/draios/repos","events_url":"https://api.github.com/users/draios/events{/privacy}","received_events_url":"https://api.github.com/users/draios/received_events","type":"Organization","site_admin":false},"repo":{"id":15926180,"name":"sysdig","full_name":"draios/sysdig","owner":{"login":"draios","id":5068817,"avatar_url":"https://avatars.githubusercontent.com/u/5068817?v=3","gravatar_id":"","url":"https://api.github.com/users/draios","html_url":"https://github.com/draios","followers_url":"https://api.github.com/users/draios/followers","following_url":"https://api.github.com/users/draios/following{/other_user}","gists_url":"https://api.github.com/users/draios/gists{/gist_id}","starred_url":"https://api.github.com/users/draios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draios/subscriptions","organizations_url":"https://api.github.com/users/draios/orgs","repos_url":"https://api.github.com/users/draios/repos","events_url":"https://api.github.com/users/draios/events{/privacy}","received_events_url":"https://api.github.com/users/draios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/draios/sysdig","description":"a system exploration and troubleshooting tool","fork":false,"url":"https://api.github.com/repos/draios/sysdig","forks_url":"https://api.github.com/repos/draios/sysdig/forks","keys_url":"https://api.github.com/repos/draios/sysdig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/draios/sysdig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/draios/sysdig/teams","hooks_url":"https://api.github.com/repos/draios/sysdig/hooks","issue_events_url":"https://api.github.com/repos/draios/sysdig/issues/events{/number}","events_url":"https://api.github.com/repos/draios/sysdig/events","assignees_url":"https://api.github.com/repos/draios/sysdig/assignees{/user}","branches_url":"https://api.github.com/repos/draios/sysdig/branches{/branch}","tags_url":"https://api.github.com/repos/draios/sysdig/tags","blobs_url":"https://api.github.com/repos/draios/sysdig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/draios/sysdig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/draios/sysdig/git/refs{/sha}","trees_url":"https://api.github.com/repos/draios/sysdig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/draios/sysdig/statuses/{sha}","languages_url":"https://api.github.com/repos/draios/sysdig/languages","stargazers_url":"https://api.github.com/repos/draios/sysdig/stargazers","contributors_url":"https://api.github.com/repos/draios/sysdig/contributors","subscribers_url":"https://api.github.com/repos/draios/sysdig/subscribers","subscription_url":"https://api.github.com/repos/draios/sysdig/subscription","commits_url":"https://api.github.com/repos/draios/sysdig/commits{/sha}","git_commits_url":"https://api.github.com/repos/draios/sysdig/git/commits{/sha}","comments_url":"https://api.github.com/repos/draios/sysdig/comments{/number}","issue_comment_url":"https://api.github.com/repos/draios/sysdig/issues/comments/{number}","contents_url":"https://api.github.com/repos/draios/sysdig/contents/{+path}","compare_url":"https://api.github.com/repos/draios/sysdig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/draios/sysdig/merges","archive_url":"https://api.github.com/repos/draios/sysdig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/draios/sysdig/downloads","issues_url":"https://api.github.com/repos/draios/sysdig/issues{/number}","pulls_url":"https://api.github.com/repos/draios/sysdig/pulls{/number}","milestones_url":"https://api.github.com/repos/draios/sysdig/milestones{/number}","notifications_url":"https://api.github.com/repos/draios/sysdig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/draios/sysdig/labels{/name}","releases_url":"https://api.github.com/repos/draios/sysdig/releases{/id}","created_at":"2014-01-15T05:45:17Z","updated_at":"2015-02-19T17:58:25Z","pushed_at":"2015-02-19T22:25:48Z","git_url":"git://github.com/draios/sysdig.git","ssh_url":"git@github.com:draios/sysdig.git","clone_url":"https://github.com/draios/sysdig.git","svn_url":"https://github.com/draios/sysdig","homepage":null,"size":12198,"stargazers_count":2277,"watchers_count":2277,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":168,"mirror_url":null,"open_issues_count":68,"forks":168,"open_issues":68,"watchers":2277,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/draios/sysdig/pulls/325"},"html":{"href":"https://github.com/draios/sysdig/pull/325"},"issue":{"href":"https://api.github.com/repos/draios/sysdig/issues/325"},"comments":{"href":"https://api.github.com/repos/draios/sysdig/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/draios/sysdig/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/draios/sysdig/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/draios/sysdig/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/draios/sysdig/statuses/bd37f03478b20278706977879bcb81d9d275afbc"}}}}