{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/868","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/868/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/868/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/868/events","html_url":"https://github.com/creationix/nvm/issues/868","id":110944043,"number":868,"title":"become a safer shell script","user":{"login":"herzi","id":2199,"avatar_url":"https://avatars.githubusercontent.com/u/2199?v=3","gravatar_id":"","url":"https://api.github.com/users/herzi","html_url":"https://github.com/herzi","followers_url":"https://api.github.com/users/herzi/followers","following_url":"https://api.github.com/users/herzi/following{/other_user}","gists_url":"https://api.github.com/users/herzi/gists{/gist_id}","starred_url":"https://api.github.com/users/herzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herzi/subscriptions","organizations_url":"https://api.github.com/users/herzi/orgs","repos_url":"https://api.github.com/users/herzi/repos","events_url":"https://api.github.com/users/herzi/events{/privacy}","received_events_url":"https://api.github.com/users/herzi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/creationix/nvm/labels/bugs","name":"bugs","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-10-12T09:54:44Z","updated_at":"2016-03-18T07:27:31Z","closed_at":"2016-01-17T23:49:06Z","body":"In our CI setup, we prefix shell scripts with\r\n\r\n```bash\r\nset -o errexit # exit on first error\r\nset -o nounset # unset variables are errors\r\n```\r\n\r\nin order to make sure script errors will become more obvious. However, I can only enable these lines _after_ including `nvm.sh`due to this error:\r\n\r\n```\r\n/usr/local/opt/nvm/nvm.sh: line 1918: $1: unbound variable\r\n```\r\n\r\nPlease consider adding the aforementioned shell settings in your code (and to fix unbound variable access).\r\n\r\n## Debug Info\r\n\r\n```\r\nbash-3.2$ nvm --version\r\n0.26.1\r\n```"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/198239208","html_url":"https://github.com/creationix/nvm/issues/868#issuecomment-198239208","issue_url":"https://api.github.com/repos/creationix/nvm/issues/868","id":198239208,"user":{"login":"stouf","id":2033517,"avatar_url":"https://avatars.githubusercontent.com/u/2033517?v=3","gravatar_id":"","url":"https://api.github.com/users/stouf","html_url":"https://github.com/stouf","followers_url":"https://api.github.com/users/stouf/followers","following_url":"https://api.github.com/users/stouf/following{/other_user}","gists_url":"https://api.github.com/users/stouf/gists{/gist_id}","starred_url":"https://api.github.com/users/stouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stouf/subscriptions","organizations_url":"https://api.github.com/users/stouf/orgs","repos_url":"https://api.github.com/users/stouf/repos","events_url":"https://api.github.com/users/stouf/events{/privacy}","received_events_url":"https://api.github.com/users/stouf/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T07:27:31Z","updated_at":"2016-03-18T07:27:31Z","body":"@ljharb Awesome. I forked the repo and was about to send a Pull Request, but I guess it's better to leave that to you :)"}}