{"action":"opened","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/918","labels_url":"https://api.github.com/repos/creationix/nvm/issues/918/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/918/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/918/events","html_url":"https://github.com/creationix/nvm/issues/918","id":119001824,"number":918,"title":"Custom PROFILE doesn't seem to work","user":{"login":"foxx","id":651797,"avatar_url":"https://avatars.githubusercontent.com/u/651797?v=3","gravatar_id":"","url":"https://api.github.com/users/foxx","html_url":"https://github.com/foxx","followers_url":"https://api.github.com/users/foxx/followers","following_url":"https://api.github.com/users/foxx/following{/other_user}","gists_url":"https://api.github.com/users/foxx/gists{/gist_id}","starred_url":"https://api.github.com/users/foxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxx/subscriptions","organizations_url":"https://api.github.com/users/foxx/orgs","repos_url":"https://api.github.com/users/foxx/repos","events_url":"https://api.github.com/users/foxx/events{/privacy}","received_events_url":"https://api.github.com/users/foxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-26T09:11:43Z","updated_at":"2015-11-26T09:11:43Z","closed_at":null,"body":"Upon trying to install NVM globally, the following problem occurs.\r\n\r\n```\r\n$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0//install.sh | \\ \r\nPROFILE=/etc/profile.d/nvm.sh NVM_DIR=/usr/local/nvm bash\r\n...\r\n=> Appending source string to /root/.bashrc\r\n```\r\n\r\nSeems that `$PROFILE` is being ignored, this appears to be caused by broken logic in [`nvm_detect_profile`][1]\r\n\r\n[1]: https://github.com/creationix/nvm/blob/bc4d14bea67b2cb5a7220f35cd5c9132d91162a7/install.sh#L124"}}