{"action":"created","comment":{"url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/comments/132373700","pull_request_review_id":55444961,"id":132373700,"diff_hunk":"@@ -0,0 +1,658 @@\n+# no shebang necessary - this is a library to be sourced\n+\n+# make sure we have a UID\n+[ -z \"${UID}\" ] && UID=\"$(id -u)\"\n+\n+\n+# -----------------------------------------------------------------------------\n+# checking the availability of commands\n+\n+which_cmd() {\n+    which \"${1}\" 2>/dev/null || \\\n+        command -v \"${1}\" 2>/dev/null\n+}\n+\n+check_cmd() {\n+    which_cmd \"${1}\" >/dev/null 2>&1 && return 0\n+    return 1\n+}\n+\n+\n+# -----------------------------------------------------------------------------\n+\n+setup_terminal() {\n+    TPUT_RESET=\"\"\n+    TPUT_BLACK=\"\"\n+    TPUT_RED=\"\"\n+    TPUT_GREEN=\"\"\n+    TPUT_YELLOW=\"\"\n+    TPUT_BLUE=\"\"\n+    TPUT_PURPLE=\"\"\n+    TPUT_CYAN=\"\"\n+    TPUT_WHITE=\"\"\n+    TPUT_BGBLACK=\"\"\n+    TPUT_BGRED=\"\"\n+    TPUT_BGGREEN=\"\"\n+    TPUT_BGYELLOW=\"\"\n+    TPUT_BGBLUE=\"\"\n+    TPUT_BGPURPLE=\"\"\n+    TPUT_BGCYAN=\"\"\n+    TPUT_BGWHITE=\"\"\n+    TPUT_BOLD=\"\"\n+    TPUT_DIM=\"\"\n+    TPUT_UNDERLINED=\"\"\n+    TPUT_BLINK=\"\"\n+    TPUT_INVERTED=\"\"\n+    TPUT_STANDOUT=\"\"\n+    TPUT_BELL=\"\"\n+    TPUT_CLEAR=\"\"\n+\n+    # Is stderr on the terminal? If not, then fail\n+    test -t 2 || return 1\n+\n+    if check_cmd tput\n+    then\n+        if [ $(( $(tput colors 2>/dev/null) )) -ge 8 ]\n+        then\n+            # Enable colors\n+            TPUT_RESET=\"$(tput sgr 0)\"\n+            TPUT_BLACK=\"$(tput setaf 0)\"\n+            TPUT_RED=\"$(tput setaf 1)\"\n+            TPUT_GREEN=\"$(tput setaf 2)\"\n+            TPUT_YELLOW=\"$(tput setaf 3)\"\n+            TPUT_BLUE=\"$(tput setaf 4)\"\n+            TPUT_PURPLE=\"$(tput setaf 5)\"\n+            TPUT_CYAN=\"$(tput setaf 6)\"\n+            TPUT_WHITE=\"$(tput setaf 7)\"\n+            TPUT_BGBLACK=\"$(tput setab 0)\"\n+            TPUT_BGRED=\"$(tput setab 1)\"\n+            TPUT_BGGREEN=\"$(tput setab 2)\"\n+            TPUT_BGYELLOW=\"$(tput setab 3)\"\n+            TPUT_BGBLUE=\"$(tput setab 4)\"\n+            TPUT_BGPURPLE=\"$(tput setab 5)\"\n+            TPUT_BGCYAN=\"$(tput setab 6)\"\n+            TPUT_BGWHITE=\"$(tput setab 7)\"\n+            TPUT_BOLD=\"$(tput bold)\"\n+            TPUT_DIM=\"$(tput dim)\"\n+            TPUT_UNDERLINED=\"$(tput smul)\"\n+            TPUT_BLINK=\"$(tput blink)\"","path":"installer/functions.sh","position":78,"original_position":78,"commit_id":"caf26d529be6c27c7aef71d5df9bfb95ad0ea69b","original_commit_id":"caf26d529be6c27c7aef71d5df9bfb95ad0ea69b","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [TPUT_BLINK appears unused. Verify it or export it.](https://www.codacy.com/app/simonnagl/netdata-plugin-java-daemon/pullRequest?prid=823862)","created_at":"2017-08-10T06:35:45Z","updated_at":"2017-08-10T06:35:45Z","html_url":"https://github.com/simonnagl/netdata-plugin-java-daemon/pull/24#discussion_r132373700","pull_request_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/comments/132373700"},"html":{"href":"https://github.com/simonnagl/netdata-plugin-java-daemon/pull/24#discussion_r132373700"},"pull_request":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24","id":134417612,"html_url":"https://github.com/simonnagl/netdata-plugin-java-daemon/pull/24","diff_url":"https://github.com/simonnagl/netdata-plugin-java-daemon/pull/24.diff","patch_url":"https://github.com/simonnagl/netdata-plugin-java-daemon/pull/24.patch","issue_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/24","number":24,"state":"open","locked":false,"title":"Add auto installer","user":{"login":"simonnagl","id":7253893,"avatar_url":"https://avatars2.githubusercontent.com/u/7253893?v=4","gravatar_id":"","url":"https://api.github.com/users/simonnagl","html_url":"https://github.com/simonnagl","followers_url":"https://api.github.com/users/simonnagl/followers","following_url":"https://api.github.com/users/simonnagl/following{/other_user}","gists_url":"https://api.github.com/users/simonnagl/gists{/gist_id}","starred_url":"https://api.github.com/users/simonnagl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonnagl/subscriptions","organizations_url":"https://api.github.com/users/simonnagl/orgs","repos_url":"https://api.github.com/users/simonnagl/repos","events_url":"https://api.github.com/users/simonnagl/events{/privacy}","received_events_url":"https://api.github.com/users/simonnagl/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-07T11:35:26Z","updated_at":"2017-08-10T06:35:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed707487b635787aa25fb934cc930f0c84082fc2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24/commits","review_comments_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24/comments","review_comment_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/24/comments","statuses_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/statuses/caf26d529be6c27c7aef71d5df9bfb95ad0ea69b","head":{"label":"simonnagl:feature/installer","ref":"feature/installer","sha":"caf26d529be6c27c7aef71d5df9bfb95ad0ea69b","user":{"login":"simonnagl","id":7253893,"avatar_url":"https://avatars2.githubusercontent.com/u/7253893?v=4","gravatar_id":"","url":"https://api.github.com/users/simonnagl","html_url":"https://github.com/simonnagl","followers_url":"https://api.github.com/users/simonnagl/followers","following_url":"https://api.github.com/users/simonnagl/following{/other_user}","gists_url":"https://api.github.com/users/simonnagl/gists{/gist_id}","starred_url":"https://api.github.com/users/simonnagl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonnagl/subscriptions","organizations_url":"https://api.github.com/users/simonnagl/orgs","repos_url":"https://api.github.com/users/simonnagl/repos","events_url":"https://api.github.com/users/simonnagl/events{/privacy}","received_events_url":"https://api.github.com/users/simonnagl/received_events","type":"User","site_admin":false},"repo":{"id":84740069,"name":"netdata-plugin-java-daemon","full_name":"simonnagl/netdata-plugin-java-daemon","owner":{"login":"simonnagl","id":7253893,"avatar_url":"https://avatars2.githubusercontent.com/u/7253893?v=4","gravatar_id":"","url":"https://api.github.com/users/simonnagl","html_url":"https://github.com/simonnagl","followers_url":"https://api.github.com/users/simonnagl/followers","following_url":"https://api.github.com/users/simonnagl/following{/other_user}","gists_url":"https://api.github.com/users/simonnagl/gists{/gist_id}","starred_url":"https://api.github.com/users/simonnagl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonnagl/subscriptions","organizations_url":"https://api.github.com/users/simonnagl/orgs","repos_url":"https://api.github.com/users/simonnagl/repos","events_url":"https://api.github.com/users/simonnagl/events{/privacy}","received_events_url":"https://api.github.com/users/simonnagl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonnagl/netdata-plugin-java-daemon","description":"Netdata Java Plugin Daemon","fork":false,"url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon","forks_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/forks","keys_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/teams","hooks_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/hooks","issue_events_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/events{/number}","events_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/events","assignees_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/assignees{/user}","branches_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/branches{/branch}","tags_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/tags","blobs_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/statuses/{sha}","languages_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/languages","stargazers_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/stargazers","contributors_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/contributors","subscribers_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/subscribers","subscription_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/subscription","commits_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/contents/{+path}","compare_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/merges","archive_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/downloads","issues_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues{/number}","pulls_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls{/number}","milestones_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/milestones{/number}","notifications_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/labels{/name}","releases_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/releases{/id}","deployments_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/deployments","created_at":"2017-03-12T16:28:23Z","updated_at":"2017-08-09T08:14:34Z","pushed_at":"2017-08-10T06:32:07Z","git_url":"git://github.com/simonnagl/netdata-plugin-java-daemon.git","ssh_url":"git@github.com:simonnagl/netdata-plugin-java-daemon.git","clone_url":"https://github.com/simonnagl/netdata-plugin-java-daemon.git","svn_url":"https://github.com/simonnagl/netdata-plugin-java-daemon","homepage":"","size":124,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":5,"default_branch":"master"}},"base":{"label":"simonnagl:master","ref":"master","sha":"639206020b96315832733a13b80678854e73e697","user":{"login":"simonnagl","id":7253893,"avatar_url":"https://avatars2.githubusercontent.com/u/7253893?v=4","gravatar_id":"","url":"https://api.github.com/users/simonnagl","html_url":"https://github.com/simonnagl","followers_url":"https://api.github.com/users/simonnagl/followers","following_url":"https://api.github.com/users/simonnagl/following{/other_user}","gists_url":"https://api.github.com/users/simonnagl/gists{/gist_id}","starred_url":"https://api.github.com/users/simonnagl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonnagl/subscriptions","organizations_url":"https://api.github.com/users/simonnagl/orgs","repos_url":"https://api.github.com/users/simonnagl/repos","events_url":"https://api.github.com/users/simonnagl/events{/privacy}","received_events_url":"https://api.github.com/users/simonnagl/received_events","type":"User","site_admin":false},"repo":{"id":84740069,"name":"netdata-plugin-java-daemon","full_name":"simonnagl/netdata-plugin-java-daemon","owner":{"login":"simonnagl","id":7253893,"avatar_url":"https://avatars2.githubusercontent.com/u/7253893?v=4","gravatar_id":"","url":"https://api.github.com/users/simonnagl","html_url":"https://github.com/simonnagl","followers_url":"https://api.github.com/users/simonnagl/followers","following_url":"https://api.github.com/users/simonnagl/following{/other_user}","gists_url":"https://api.github.com/users/simonnagl/gists{/gist_id}","starred_url":"https://api.github.com/users/simonnagl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonnagl/subscriptions","organizations_url":"https://api.github.com/users/simonnagl/orgs","repos_url":"https://api.github.com/users/simonnagl/repos","events_url":"https://api.github.com/users/simonnagl/events{/privacy}","received_events_url":"https://api.github.com/users/simonnagl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simonnagl/netdata-plugin-java-daemon","description":"Netdata Java Plugin Daemon","fork":false,"url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon","forks_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/forks","keys_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/teams","hooks_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/hooks","issue_events_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/events{/number}","events_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/events","assignees_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/assignees{/user}","branches_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/branches{/branch}","tags_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/tags","blobs_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/refs{/sha}","trees_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/statuses/{sha}","languages_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/languages","stargazers_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/stargazers","contributors_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/contributors","subscribers_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/subscribers","subscription_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/subscription","commits_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/commits{/sha}","git_commits_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/git/commits{/sha}","comments_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/comments{/number}","issue_comment_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/comments{/number}","contents_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/contents/{+path}","compare_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/merges","archive_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/downloads","issues_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues{/number}","pulls_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls{/number}","milestones_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/milestones{/number}","notifications_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/labels{/name}","releases_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/releases{/id}","deployments_url":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/deployments","created_at":"2017-03-12T16:28:23Z","updated_at":"2017-08-09T08:14:34Z","pushed_at":"2017-08-10T06:32:07Z","git_url":"git://github.com/simonnagl/netdata-plugin-java-daemon.git","ssh_url":"git@github.com:simonnagl/netdata-plugin-java-daemon.git","clone_url":"https://github.com/simonnagl/netdata-plugin-java-daemon.git","svn_url":"https://github.com/simonnagl/netdata-plugin-java-daemon","homepage":"","size":124,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24"},"html":{"href":"https://github.com/simonnagl/netdata-plugin-java-daemon/pull/24"},"issue":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/24"},"comments":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/simonnagl/netdata-plugin-java-daemon/statuses/caf26d529be6c27c7aef71d5df9bfb95ad0ea69b"}}}}
{"actor":{"display_login":"codacy-bot"}}