Azure / Azure/AzureStack-Tools

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

オープン
#534 コメント 0 件 リアクション 2 件 担当者 1 名 @bganapa が担当を希望しています GitHub で見る
主要言語
PowerShell
スター
260
フォーク
283
平均マージ
2時間 11分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。