Azure / Azure/AzureStack-Tools

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

未关闭
#534 0 条评论 2 个 reaction 已指派 1 人 已被 @bganapa 认领 在 GitHub 查看
主要语言
PowerShell
星标
260
派生
283
平均合并
2 小时 11 分钟
30 天内合并 PR
1

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。