Skip to content

Commit

Permalink
Fix for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Nov 12, 2023
1 parent 2372b60 commit a9aa4a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Private/Start-ModuleBuilding.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@
# Workaround to link files that are not ps1/psd1
[Array] $CompareWorkaround = foreach ($Directory in $DirectoriesWithPS1) {
if ($null -eq $IsWindows -or $IsWindows -eq $true) {
$Dir = [System.IO.Path]::Combine($Directory, "\")
$Dir = -join ($Directory, "\")
} else {
$Dir = [System.IO.Path]::Combine($Directory, "/")
$Dir = -join ($Directory, "/")
}
#-join ($_, '\')
}
Expand Down Expand Up @@ -198,23 +198,23 @@

if (-not [string]::IsNullOrWhiteSpace($Configuration.Information.LibrariesCore)) {
if ($null -eq $IsWindows -or $IsWindows -eq $true) {
$StartsWithCore = [System.IO.Path]::Combine($Configuration.Information.LibrariesCore, "\")
$StartsWithCore = -join ($Configuration.Information.LibrariesCore, "\")
} else {
$StartsWithCore = [System.IO.Path]::Combine($Configuration.Information.LibrariesCore, "/")
$StartsWithCore = -join ($Configuration.Information.LibrariesCore, "/")
}
}
if (-not [string]::IsNullOrWhiteSpace($Configuration.Information.LibrariesDefault)) {
if ($null -eq $IsWindows -or $IsWindows -eq $true) {
$StartsWithDefault = [System.IO.Path]::Combine($Configuration.Information.LibrariesDefault, "\")
$StartsWithDefault = -join ($Configuration.Information.LibrariesDefault, "\")
} else {
$StartsWithDefault = [System.IO.Path]::Combine($Configuration.Information.LibrariesDefault, "/")
$StartsWithDefault = -join ($Configuration.Information.LibrariesDefault, "/")
}
}
if (-not [string]::IsNullOrWhiteSpace($Configuration.Information.LibrariesStandard)) {
if ($null -eq $IsWindows -or $IsWindows -eq $true) {
$StartsWithStandard = [System.IO.Path]::Combine($Configuration.Information.LibrariesStandard, "\")
$StartsWithStandard = -join ($Configuration.Information.LibrariesStandard, "\")
} else {
$StartsWithStandard = [System.IO.Path]::Combine($Configuration.Information.LibrariesStandard, "/")
$StartsWithStandard = -join ($Configuration.Information.LibrariesStandard, "/")
}
}

Expand Down

0 comments on commit a9aa4a8

Please sign in to comment.