Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#534 0 bình luận 2 reaction 1 người được giao Xem trên GitHub

@bganapa đang làm issue này rồi.

Từ ngày 10/4/2020.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

replace:
$rootPath = $env:TEMP
with:
$rootPath = [system.io.path]::GetTempPath()

would have issued a pull request myself to fix this but its greyed out?

Ngôn ngữ chính
PowerShell
Star
260
Fork
283
Merge trung bình
2 giờ 11 phút
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/AzureStack-Tools

Tất cả issue của Azure/AzureStack-Tools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.