Skip to content

Commit

Permalink
Get-DbaRegisteredServer - fix for linux (#5655)
Browse files Browse the repository at this point in the history
* ignore linux

* test

* remove excessive syntax
  • Loading branch information
potatoqualitee authored May 30, 2019
1 parent f36be60 commit 36657ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/Get-DbaRegServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function Get-DbaRegServer {
}
}
process {
if (-not $PSBoundParameters.SqlInstance) {
if (-not $PSBoundParameters.SqlInstance -and -not ($IsLinux -or $IsMacOs)) {
$null = Get-ChildItem -Recurse "$home\AppData\Roaming\Microsoft\*sql*" -Filter RegSrvr.xml | Sort-Object LastWriteTime -Descending | Select-Object -First 1
}

Expand Down

0 comments on commit 36657ad

Please sign in to comment.