{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/shell-path/issues/9","labels_url":"https://api.github.com/repos/sindresorhus/shell-path/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/shell-path/issues/9/comments","events_url":"https://api.github.com/repos/sindresorhus/shell-path/issues/9/events","html_url":"https://github.com/sindresorhus/shell-path/issues/9","id":129648764,"number":9,"title":"Remove `sudo` check","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/shell-path/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/sindresorhus/shell-path/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/sindresorhus/shell-path/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-29T02:47:12Z","updated_at":"2016-01-29T15:21:16Z","closed_at":"2016-01-29T15:15:17Z","body":"In https://github.com/sindresorhus/shell-path/commit/8522076328e0b13874b234075f6a50a4a6084424, I replaced the normal check with [`shell-env`](https://github.com/sindresorhus/shell-env), which now instead of `$ echo $PATH`, parses out the PATH from `$ env`, same as the `sudo` check does. I'm doubtful how useful the `sudo` check is now. It actually misses some things, like `.zshrc`, since it doesn't run the shell interactively.\r\n\r\nNeed to ensure it still works fine in a packaged app without `sudo`.\r\n\r\n-\r\n\r\n@silverwind What do you think?"},"comment":{"url":"https://api.github.com/repos/sindresorhus/shell-path/issues/comments/176806921","html_url":"https://github.com/sindresorhus/shell-path/issues/9#issuecomment-176806921","issue_url":"https://api.github.com/repos/sindresorhus/shell-path/issues/9","id":176806921,"user":{"login":"silverwind","id":115237,"avatar_url":"https://avatars.githubusercontent.com/u/115237?v=3","gravatar_id":"","url":"https://api.github.com/users/silverwind","html_url":"https://github.com/silverwind","followers_url":"https://api.github.com/users/silverwind/followers","following_url":"https://api.github.com/users/silverwind/following{/other_user}","gists_url":"https://api.github.com/users/silverwind/gists{/gist_id}","starred_url":"https://api.github.com/users/silverwind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverwind/subscriptions","organizations_url":"https://api.github.com/users/silverwind/orgs","repos_url":"https://api.github.com/users/silverwind/repos","events_url":"https://api.github.com/users/silverwind/events{/privacy}","received_events_url":"https://api.github.com/users/silverwind/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T15:21:16Z","updated_at":"2016-01-29T15:21:16Z","body":"Thanks! I've been seeing `sudo` fail on CI with `must be setuid root` errors which points to a permission error on `/usr/bin/sudo`, so I'm kind of glad it's gone."}}