Azure / Azure/AzureStack-Tools

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

Abierto
#534 0 comentarios 2 reacciones 1 asignado Reclamado por @bganapa Ver en GitHub
Lenguaje dominante
PowerShell
Estrellas
260
Forks
283
Merge medio
2 h 11 min
PR fusionados (30 d)
1

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.