Azure / Azure/AzureStack-Tools

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

Open
#534 0 comments 2 reactions 1 assignee Claimed by @bganapa View on GitHub
Dominant language
PowerShell
Stars
260
Forks
283
Avg merge
2h 11m
Merged PRs (30d)
1

Description

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](url)

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

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.