{"action":"opened","issue":{"url":"https://api.github.com/repos/geerlingguy/dotfiles/issues/1","labels_url":"https://api.github.com/repos/geerlingguy/dotfiles/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/dotfiles/issues/1/comments","events_url":"https://api.github.com/repos/geerlingguy/dotfiles/issues/1/events","html_url":"https://github.com/geerlingguy/dotfiles/issues/1","id":53285695,"number":1,"title":"Allow to run without sudo access","user":{"login":"geerlingguy","id":481677,"avatar_url":"https://avatars.githubusercontent.com/u/481677?v=3","gravatar_id":"","url":"https://api.github.com/users/geerlingguy","html_url":"https://github.com/geerlingguy","followers_url":"https://api.github.com/users/geerlingguy/followers","following_url":"https://api.github.com/users/geerlingguy/following{/other_user}","gists_url":"https://api.github.com/users/geerlingguy/gists{/gist_id}","starred_url":"https://api.github.com/users/geerlingguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geerlingguy/subscriptions","organizations_url":"https://api.github.com/users/geerlingguy/orgs","repos_url":"https://api.github.com/users/geerlingguy/repos","events_url":"https://api.github.com/users/geerlingguy/events{/privacy}","received_events_url":"https://api.github.com/users/geerlingguy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geerlingguy/dotfiles/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-02T23:30:35Z","updated_at":"2015-01-02T23:30:35Z","closed_at":null,"body":"Right now, this script always prompts for/requires sudo privileges, which can make automated runs annoying if not (sometimes) impossible. I'd like to make the commands requiring sudo optional, and only perform sudo-related stuff if the script is run with `sudo`/as root.\r\n\r\nI'll still warn if not run with sudo, but most everything can be configured without sudo anyways."}}