{"action":"created","issue":{"url":"https://api.github.com/repos/RamblingCookieMonster/PSDeploy/issues/113","repository_url":"https://api.github.com/repos/RamblingCookieMonster/PSDeploy","labels_url":"https://api.github.com/repos/RamblingCookieMonster/PSDeploy/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/RamblingCookieMonster/PSDeploy/issues/113/comments","events_url":"https://api.github.com/repos/RamblingCookieMonster/PSDeploy/issues/113/events","html_url":"https://github.com/RamblingCookieMonster/PSDeploy/issues/113","id":356361695,"node_id":"MDU6SXNzdWUzNTYzNjE2OTU=","number":113,"title":"Shadow-Copy Function Throws Exception when run on PS Core on Linux or OSX","user":{"login":"PlagueHO","id":7589164,"node_id":"MDQ6VXNlcjc1ODkxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7589164?v=4","gravatar_id":"","url":"https://api.github.com/users/PlagueHO","html_url":"https://github.com/PlagueHO","followers_url":"https://api.github.com/users/PlagueHO/followers","following_url":"https://api.github.com/users/PlagueHO/following{/other_user}","gists_url":"https://api.github.com/users/PlagueHO/gists{/gist_id}","starred_url":"https://api.github.com/users/PlagueHO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlagueHO/subscriptions","organizations_url":"https://api.github.com/users/PlagueHO/orgs","repos_url":"https://api.github.com/users/PlagueHO/repos","events_url":"https://api.github.com/users/PlagueHO/events{/privacy}","received_events_url":"https://api.github.com/users/PlagueHO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-03T05:24:28Z","updated_at":"2018-09-03T20:41:19Z","closed_at":null,"author_association":"NONE","body":"I get an error when this line\r\nhttps://github.com/RamblingCookieMonster/PSDeploy/blob/90ec3397d7900e3400c95315f4d430db79e2547d/PSDeploy/Private/PSYaml/Private/Shadow-Copy.ps1#L1\r\n\r\nruns on Linux (and OSx) E.g. see Travis CI\r\nhttps://travis-ci.org/PlagueHO/CosmosDB/jobs/423782302#L519\r\n\r\n`$env:temp` is not declared in Linux and OSx.\r\n\r\nI'll take a deeper look over the next few days and see if I can suggest a fix and submit a PR to you."},"comment":{"url":"https://api.github.com/repos/RamblingCookieMonster/PSDeploy/issues/comments/418190188","html_url":"https://github.com/RamblingCookieMonster/PSDeploy/issues/113#issuecomment-418190188","issue_url":"https://api.github.com/repos/RamblingCookieMonster/PSDeploy/issues/113","id":418190188,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODE5MDE4OA==","user":{"login":"PlagueHO","id":7589164,"node_id":"MDQ6VXNlcjc1ODkxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7589164?v=4","gravatar_id":"","url":"https://api.github.com/users/PlagueHO","html_url":"https://github.com/PlagueHO","followers_url":"https://api.github.com/users/PlagueHO/followers","following_url":"https://api.github.com/users/PlagueHO/following{/other_user}","gists_url":"https://api.github.com/users/PlagueHO/gists{/gist_id}","starred_url":"https://api.github.com/users/PlagueHO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlagueHO/subscriptions","organizations_url":"https://api.github.com/users/PlagueHO/orgs","repos_url":"https://api.github.com/users/PlagueHO/repos","events_url":"https://api.github.com/users/PlagueHO/events{/privacy}","received_events_url":"https://api.github.com/users/PlagueHO/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T20:41:19Z","updated_at":"2018-09-03T20:41:19Z","author_association":"NONE","body":"There doesn't seem to be a clear pattern for getting the temp folder location in different platforms: https://github.com/PowerShell/PowerShell/issues/4216\r\n\r\nSo it might just be simplest to add a `Get-TempPath`  utility function that just returns:\r\n\r\n- Windows: $env:TEMP\r\n- macOS: $env:TMPDIR\r\n- Linux: /tmp\r\n\r\n"}}
{"actor":{"display_login":"PlagueHO"}}