Azure / Azure/AzureStack-Tools

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

Offen
#534 0 Kommentare 2 Reaktionen 1 zugewiesene Person Beansprucht von @bganapa Auf GitHub ansehen
Vorherrschende Sprache
PowerShell
Sterne
260
Forks
283
Ø Merge
2 Std. 11 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.