{"action":"created","comment":{"url":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/comments/66678683","id":66678683,"diff_hunk":"@@ -9,27 +9,24 @@ git submodule init\n git submodule update --remote\n mkdir -p letsencrypt.sh/.acme-challenges\n \n+# write_config $config_dir $wellknown\n+write_config() {\n+    mkdir -p -- \"$1\" \"$2\"\n+    printf '%s=%q\\n' WELLKNOWN \"$2\" HOOK \"$(realpath nfsn-hook.sh)\" >\"$1/config\"","path":"nfsn-setup.sh","position":null,"original_position":7,"commit_id":"6744d07a11d9f3dbdc3e5eb05b7473c27cb5a4f9","original_commit_id":"a894c5edbe10a1051fee004d419af60121efe477","user":{"login":"mina86","id":32383,"avatar_url":"https://avatars.githubusercontent.com/u/32383?v=3","gravatar_id":"","url":"https://api.github.com/users/mina86","html_url":"https://github.com/mina86","followers_url":"https://api.github.com/users/mina86/followers","following_url":"https://api.github.com/users/mina86/following{/other_user}","gists_url":"https://api.github.com/users/mina86/gists{/gist_id}","starred_url":"https://api.github.com/users/mina86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mina86/subscriptions","organizations_url":"https://api.github.com/users/mina86/orgs","repos_url":"https://api.github.com/users/mina86/repos","events_url":"https://api.github.com/users/mina86/events{/privacy}","received_events_url":"https://api.github.com/users/mina86/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-06-10T20:47:57Z","updated_at":"2016-06-10T20:47:57Z","html_url":"https://github.com/Celti/lets-nfsn.sh/pull/2#discussion_r66678683","pull_request_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/comments/66678683"},"html":{"href":"https://github.com/Celti/lets-nfsn.sh/pull/2#discussion_r66678683"},"pull_request":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2","id":73425536,"html_url":"https://github.com/Celti/lets-nfsn.sh/pull/2","diff_url":"https://github.com/Celti/lets-nfsn.sh/pull/2.diff","patch_url":"https://github.com/Celti/lets-nfsn.sh/pull/2.patch","issue_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/issues/2","number":2,"state":"open","locked":false,"title":"Some small changes","user":{"login":"mina86","id":32383,"avatar_url":"https://avatars.githubusercontent.com/u/32383?v=3","gravatar_id":"","url":"https://api.github.com/users/mina86","html_url":"https://github.com/mina86","followers_url":"https://api.github.com/users/mina86/followers","following_url":"https://api.github.com/users/mina86/following{/other_user}","gists_url":"https://api.github.com/users/mina86/gists{/gist_id}","starred_url":"https://api.github.com/users/mina86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mina86/subscriptions","organizations_url":"https://api.github.com/users/mina86/orgs","repos_url":"https://api.github.com/users/mina86/repos","events_url":"https://api.github.com/users/mina86/events{/privacy}","received_events_url":"https://api.github.com/users/mina86/received_events","type":"User","site_admin":false},"body":"I’m confused about the `contains` function. Is there something I’m missing? As far as I can tell, the grep check is sufficient.","created_at":"2016-06-10T19:43:08Z","updated_at":"2016-06-10T20:47:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"971bec2c7f7572e052ee8a4f86cfbc82929a9036","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/issues/2/comments","statuses_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/statuses/6744d07a11d9f3dbdc3e5eb05b7473c27cb5a4f9","head":{"label":"mina86:master","ref":"master","sha":"6744d07a11d9f3dbdc3e5eb05b7473c27cb5a4f9","user":{"login":"mina86","id":32383,"avatar_url":"https://avatars.githubusercontent.com/u/32383?v=3","gravatar_id":"","url":"https://api.github.com/users/mina86","html_url":"https://github.com/mina86","followers_url":"https://api.github.com/users/mina86/followers","following_url":"https://api.github.com/users/mina86/following{/other_user}","gists_url":"https://api.github.com/users/mina86/gists{/gist_id}","starred_url":"https://api.github.com/users/mina86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mina86/subscriptions","organizations_url":"https://api.github.com/users/mina86/orgs","repos_url":"https://api.github.com/users/mina86/repos","events_url":"https://api.github.com/users/mina86/events{/privacy}","received_events_url":"https://api.github.com/users/mina86/received_events","type":"User","site_admin":false},"repo":{"id":60654572,"name":"lets-nfsn.sh","full_name":"mina86/lets-nfsn.sh","owner":{"login":"mina86","id":32383,"avatar_url":"https://avatars.githubusercontent.com/u/32383?v=3","gravatar_id":"","url":"https://api.github.com/users/mina86","html_url":"https://github.com/mina86","followers_url":"https://api.github.com/users/mina86/followers","following_url":"https://api.github.com/users/mina86/following{/other_user}","gists_url":"https://api.github.com/users/mina86/gists{/gist_id}","starred_url":"https://api.github.com/users/mina86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mina86/subscriptions","organizations_url":"https://api.github.com/users/mina86/orgs","repos_url":"https://api.github.com/users/mina86/repos","events_url":"https://api.github.com/users/mina86/events{/privacy}","received_events_url":"https://api.github.com/users/mina86/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mina86/lets-nfsn.sh","description":"Let's Encrypt automation for NearlyFreeSpeech","fork":true,"url":"https://api.github.com/repos/mina86/lets-nfsn.sh","forks_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/forks","keys_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/teams","hooks_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/hooks","issue_events_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/issues/events{/number}","events_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/events","assignees_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/assignees{/user}","branches_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/branches{/branch}","tags_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/tags","blobs_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/git/refs{/sha}","trees_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/statuses/{sha}","languages_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/languages","stargazers_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/stargazers","contributors_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/contributors","subscribers_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/subscribers","subscription_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/subscription","commits_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/commits{/sha}","git_commits_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/git/commits{/sha}","comments_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/comments{/number}","issue_comment_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/issues/comments{/number}","contents_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/contents/{+path}","compare_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/merges","archive_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/downloads","issues_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/issues{/number}","pulls_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/pulls{/number}","milestones_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/milestones{/number}","notifications_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/labels{/name}","releases_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/releases{/id}","deployments_url":"https://api.github.com/repos/mina86/lets-nfsn.sh/deployments","created_at":"2016-06-07T23:54:16Z","updated_at":"2016-06-07T23:54:17Z","pushed_at":"2016-06-10T20:44:33Z","git_url":"git://github.com/mina86/lets-nfsn.sh.git","ssh_url":"git@github.com:mina86/lets-nfsn.sh.git","clone_url":"https://github.com/mina86/lets-nfsn.sh.git","svn_url":"https://github.com/mina86/lets-nfsn.sh","homepage":null,"size":37,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"master"}},"base":{"label":"Celti:master","ref":"master","sha":"9788db5970acd0980f4451e2e52cf0064cf52c8e","user":{"login":"Celti","id":4999146,"avatar_url":"https://avatars.githubusercontent.com/u/4999146?v=3","gravatar_id":"","url":"https://api.github.com/users/Celti","html_url":"https://github.com/Celti","followers_url":"https://api.github.com/users/Celti/followers","following_url":"https://api.github.com/users/Celti/following{/other_user}","gists_url":"https://api.github.com/users/Celti/gists{/gist_id}","starred_url":"https://api.github.com/users/Celti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Celti/subscriptions","organizations_url":"https://api.github.com/users/Celti/orgs","repos_url":"https://api.github.com/users/Celti/repos","events_url":"https://api.github.com/users/Celti/events{/privacy}","received_events_url":"https://api.github.com/users/Celti/received_events","type":"User","site_admin":false},"repo":{"id":59697544,"name":"lets-nfsn.sh","full_name":"Celti/lets-nfsn.sh","owner":{"login":"Celti","id":4999146,"avatar_url":"https://avatars.githubusercontent.com/u/4999146?v=3","gravatar_id":"","url":"https://api.github.com/users/Celti","html_url":"https://github.com/Celti","followers_url":"https://api.github.com/users/Celti/followers","following_url":"https://api.github.com/users/Celti/following{/other_user}","gists_url":"https://api.github.com/users/Celti/gists{/gist_id}","starred_url":"https://api.github.com/users/Celti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Celti/subscriptions","organizations_url":"https://api.github.com/users/Celti/orgs","repos_url":"https://api.github.com/users/Celti/repos","events_url":"https://api.github.com/users/Celti/events{/privacy}","received_events_url":"https://api.github.com/users/Celti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Celti/lets-nfsn.sh","description":"Let's Encrypt automation for NearlyFreeSpeech","fork":false,"url":"https://api.github.com/repos/Celti/lets-nfsn.sh","forks_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/forks","keys_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/teams","hooks_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/hooks","issue_events_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/issues/events{/number}","events_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/events","assignees_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/assignees{/user}","branches_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/branches{/branch}","tags_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/tags","blobs_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/git/refs{/sha}","trees_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/statuses/{sha}","languages_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/languages","stargazers_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/stargazers","contributors_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/contributors","subscribers_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/subscribers","subscription_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/subscription","commits_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/commits{/sha}","git_commits_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/git/commits{/sha}","comments_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/comments{/number}","issue_comment_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/issues/comments{/number}","contents_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/contents/{+path}","compare_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/merges","archive_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/downloads","issues_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/issues{/number}","pulls_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls{/number}","milestones_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/milestones{/number}","notifications_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/labels{/name}","releases_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/releases{/id}","deployments_url":"https://api.github.com/repos/Celti/lets-nfsn.sh/deployments","created_at":"2016-05-25T21:03:46Z","updated_at":"2016-06-08T13:02:12Z","pushed_at":"2016-06-10T20:44:34Z","git_url":"git://github.com/Celti/lets-nfsn.sh.git","ssh_url":"git@github.com:Celti/lets-nfsn.sh.git","clone_url":"https://github.com/Celti/lets-nfsn.sh.git","svn_url":"https://github.com/Celti/lets-nfsn.sh","homepage":null,"size":32,"stargazers_count":5,"watchers_count":5,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2"},"html":{"href":"https://github.com/Celti/lets-nfsn.sh/pull/2"},"issue":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/issues/2"},"comments":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Celti/lets-nfsn.sh/statuses/6744d07a11d9f3dbdc3e5eb05b7473c27cb5a4f9"}}}}
{"actor":{"display_login":"mina86"}}