Azure / Azure/AzureStack-Tools
Script Fails on MacOSX under powershell core due to $env:TEMP
Aperta
- Lingua principale
- PowerShell
- Stelle
- 260
- Fork
- 283
- Merge medio
- 2h 11m
- PR unite (30g)
- 1
Descrizione
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?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.