Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Fails on MacOSX under powershell core due to $env:TEMP #534

Open
65156 opened this issue Nov 20, 2019 · 0 comments
Open

Script Fails on MacOSX under powershell core due to $env:TEMP #534

65156 opened this issue Nov 20, 2019 · 0 comments
Assignees

Comments

@65156
Copy link

65156 commented Nov 20, 2019

Windows only variable has been referenced in Get-AzureRMCloudCapability.ps script breaking functionality with non Windows Operating systems.

Please consider using unified variable "[system.io.path]::GetTempPath()"

link here https://github.com/Azure/AzureStack-Tools/blob/master/CloudCapabilities/AzureRM.CloudCapabilities.psm1#L48

replace:
$rootPath = $env:TEMP
with:
$rootPath = [system.io.path]::GetTempPath()

would have issued a pull request myself to fix this but its greyed out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants