{"action":"created","issue":{"url":"https://api.github.com/repos/jpetazzo/nsenter/issues/77","repository_url":"https://api.github.com/repos/jpetazzo/nsenter","labels_url":"https://api.github.com/repos/jpetazzo/nsenter/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/jpetazzo/nsenter/issues/77/comments","events_url":"https://api.github.com/repos/jpetazzo/nsenter/issues/77/events","html_url":"https://github.com/jpetazzo/nsenter/pull/77","id":119715763,"number":77,"title":"Dedent docker-enter script","user":{"login":"blueyed","id":9766,"avatar_url":"https://avatars.githubusercontent.com/u/9766?v=3","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T13:20:55Z","updated_at":"2016-04-18T11:19:07Z","closed_at":"2016-04-18T11:19:05Z","pull_request":{"url":"https://api.github.com/repos/jpetazzo/nsenter/pulls/77","html_url":"https://github.com/jpetazzo/nsenter/pull/77","diff_url":"https://github.com/jpetazzo/nsenter/pull/77.diff","patch_url":"https://github.com/jpetazzo/nsenter/pull/77.patch"},"body":"Exit after printing usage, which gets rid of the big else block.\r\n\r\nDiff without whitespace:\r\n```diff\r\ndiff --git a/docker-enter b/docker-enter\r\nindex 97c6b2f..6cc75cd 100755\r\n--- a/docker-enter\r\n+++ b/docker-enter\r\n@@ -19,9 +19,7 @@ if [ -z \"$1\" ]; then\r\n     echo \"\"\r\n     echo \"Enters the Docker CONTAINER and executes the specified COMMAND.\"\r\n     echo \"If COMMAND is not specified, runs an interactive shell in CONTAINER.\"\r\n-    exit\r\n-fi\r\n-\r\n+else\r\n     PID=$(docker inspect --format \"{{.State.Pid}}\" \"$1\")\r\n     [ -z \"$PID\" ] && exit 1\r\n     shift\r\n@@ -49,3 +47,4 @@ else\r\n         # \"$@\" is magic in bash, and needs to be in the invocation\r\n         $LAZY_SUDO \"$IMPORTENV\" \"$ENVIRON\" \"$NSENTER\" $OPTS \"$@\"\r\n     fi\r\n+fi\r\n```"},"comment":{"url":"https://api.github.com/repos/jpetazzo/nsenter/issues/comments/211335538","html_url":"https://github.com/jpetazzo/nsenter/pull/77#issuecomment-211335538","issue_url":"https://api.github.com/repos/jpetazzo/nsenter/issues/77","id":211335538,"user":{"login":"jpetazzo","id":171481,"avatar_url":"https://avatars.githubusercontent.com/u/171481?v=3","gravatar_id":"","url":"https://api.github.com/users/jpetazzo","html_url":"https://github.com/jpetazzo","followers_url":"https://api.github.com/users/jpetazzo/followers","following_url":"https://api.github.com/users/jpetazzo/following{/other_user}","gists_url":"https://api.github.com/users/jpetazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/jpetazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpetazzo/subscriptions","organizations_url":"https://api.github.com/users/jpetazzo/orgs","repos_url":"https://api.github.com/users/jpetazzo/repos","events_url":"https://api.github.com/users/jpetazzo/events{/privacy}","received_events_url":"https://api.github.com/users/jpetazzo/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T11:19:07Z","updated_at":"2016-04-18T11:19:07Z","body":"That makes sense. Thanks!"}}