Skip to content

Commit 6f8315b

Browse files
mac update
1 parent 7e8ead8 commit 6f8315b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

public/Export-DbaDacPackage.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ function Export-DbaDacPackage {
246246
$startprocess.FileName = $sqlpackage
247247
} else {
248248
if ($IsLinux) {
249-
$startprocess.FileName = "$script:libraryroot/lib/sqlpackage"
249+
$startprocess.FileName = "$script:libraryroot/core/lib/dac/linux/sqlpackage"
250250
} elseif ($IsMacOS) {
251-
$startprocess.FileName = "$script:libraryroot/lib/mac/sqlpackage"
251+
$startprocess.FileName = "$script:libraryroot/core/lib/dac/mac/sqlpackage"
252252
} else {
253-
$startprocess.FileName = "$script:libraryroot\lib\sqlpackage.exe"
253+
$startprocess.FileName = "$script:libraryroot\core\lib\dac\windows\sqlpackage.exe"
254254
}
255255
}
256256
$startprocess.Arguments = $sqlPackageArgs

tests/Get-DbaDbSharePoint.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Describe "$commandname Integration Tests" -Tag "IntegrationTests" {
3232
if (-not $sqlpackage) {
3333
$libraryPath = Get-DbatoolsLibraryPath
3434
if ($libraryPath -match 'desktop$') {
35-
$sqlpackage = Join-DbaPath -Path (Get-DbatoolsLibraryPath) -ChildPath lib, sqlpackage.exe
35+
$sqlpackage = Join-DbaPath -Path (Get-DbatoolsLibraryPath) -ChildPath core, lib, dac, sqlpackage.exe
3636
} elseif ($isWindows) {
37-
$sqlpackage = Join-DbaPath -Path (Get-DbatoolsLibraryPath) -ChildPath lib, win, sqlpackage.exe
37+
$sqlpackage = Join-DbaPath -Path (Get-DbatoolsLibraryPath) -ChildPath core,lib, dac, sqlpackage.exe
3838
} else {
3939
# Not implemented
4040
}

0 commit comments

Comments
 (0)