We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 286311a commit bec074bCopy full SHA for bec074b
1 file changed
update-all-repos.ps1
@@ -37,7 +37,7 @@ $commitMsgSrc = Join-Path $TEMPLATE_HOOKS "commit-msg"
37
38
# No path given = scan all local fixed drives (C:\, D:\, E:\, etc.)
39
if ($TargetPaths.Count -eq 0) {
40
- $TargetPaths = [System.IO.DriveInfo]::GetDrives() | Where-Object { $_.DriveType -eq 'Fixed' -and $_.IsReady } | ForEach-Object { $_.Root.TrimEnd('\') + '\' }
+ $TargetPaths = [System.IO.DriveInfo]::GetDrives() | Where-Object { $_.DriveType -eq 'Fixed' -and $_.IsReady -and $null -ne $_.Root } | ForEach-Object { $_.Root.TrimEnd('\') + '\' }
41
42
Write-Fail "No local drives found."
43
exit 1
0 commit comments