{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2988","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2988/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2988/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2988/events","html_url":"https://github.com/dotnet/cli/issues/2988","id":154309319,"number":2988,"title":"Installing packages appends many times to /etc/paths.d/dotnet","user":{"login":"vcsjones","id":361677,"avatar_url":"https://avatars.githubusercontent.com/u/361677?v=3","gravatar_id":"","url":"https://api.github.com/users/vcsjones","html_url":"https://github.com/vcsjones","followers_url":"https://api.github.com/users/vcsjones/followers","following_url":"https://api.github.com/users/vcsjones/following{/other_user}","gists_url":"https://api.github.com/users/vcsjones/gists{/gist_id}","starred_url":"https://api.github.com/users/vcsjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcsjones/subscriptions","organizations_url":"https://api.github.com/users/vcsjones/orgs","repos_url":"https://api.github.com/users/vcsjones/repos","events_url":"https://api.github.com/users/vcsjones/events{/privacy}","received_events_url":"https://api.github.com/users/vcsjones/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"blackdwarf","id":3115004,"avatar_url":"https://avatars.githubusercontent.com/u/3115004?v=3","gravatar_id":"","url":"https://api.github.com/users/blackdwarf","html_url":"https://github.com/blackdwarf","followers_url":"https://api.github.com/users/blackdwarf/followers","following_url":"https://api.github.com/users/blackdwarf/following{/other_user}","gists_url":"https://api.github.com/users/blackdwarf/gists{/gist_id}","starred_url":"https://api.github.com/users/blackdwarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackdwarf/subscriptions","organizations_url":"https://api.github.com/users/blackdwarf/orgs","repos_url":"https://api.github.com/users/blackdwarf/repos","events_url":"https://api.github.com/users/blackdwarf/events{/privacy}","received_events_url":"https://api.github.com/users/blackdwarf/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/10","html_url":"https://github.com/dotnet/cli/milestones/1.0.0-preview2","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/10/labels","id":1758532,"number":10,"title":"1.0.0-preview2","description":"","creator":{"login":"piotrpMSFT","id":2379589,"avatar_url":"https://avatars.githubusercontent.com/u/2379589?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrpMSFT","html_url":"https://github.com/piotrpMSFT","followers_url":"https://api.github.com/users/piotrpMSFT/followers","following_url":"https://api.github.com/users/piotrpMSFT/following{/other_user}","gists_url":"https://api.github.com/users/piotrpMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrpMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrpMSFT/subscriptions","organizations_url":"https://api.github.com/users/piotrpMSFT/orgs","repos_url":"https://api.github.com/users/piotrpMSFT/repos","events_url":"https://api.github.com/users/piotrpMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/piotrpMSFT/received_events","type":"User","site_admin":false},"open_issues":49,"closed_issues":20,"state":"open","created_at":"2016-05-10T18:28:56Z","updated_at":"2016-05-26T14:43:54Z","due_on":"2016-06-06T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-05-11T18:21:36Z","updated_at":"2016-05-26T14:43:54Z","closed_at":"2016-05-26T14:43:54Z","body":"## Steps to reproduce\r\n\r\nRun the .pkg for the SDK installer multiple times. Can be the same version, can be different ones.\r\n\r\n## Expected  behavior\r\n\r\nThe `/etc/paths.d/dotnet` file contains a single line to the path of where the CLI tools are run.\r\n\r\n## Actual behavior\r\n\r\nEvery time the package installer is run, another path line is added:\r\n\r\n```\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n/usr/local/share/dotnet\r\n..etc\r\n```\r\n\r\nI only discovered this because it looks like at some point, the path was once `/usr/local/share/dotnet/bin`, which was getting added to my path and causing problems.\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n\r\n>.NET Command Line Tools (1.0.0-preview1-002700)\r\n>\r\n>Product Information:\r\n> Version:     1.0.0-preview1-002700\r\n> Commit Sha:  0336f6bb34\r\n\r\n>Runtime Environment:\r\n> OS Name:     Mac OS X\r\n> OS Version:  10.11\r\n> OS Platform: Darwin\r\n> RID:         osx.10.11-x64\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"vcsjones"}}