File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
powershell-adapter/psDscAdapter Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 14
14
[switch ]$SkipLinkCheck
15
15
)
16
16
17
+ winrm quickconfig - quiet
18
+
17
19
if ($GetPackageVersion ) {
18
20
$match = Select-String - Path $PSScriptRoot / dsc/ Cargo.toml - Pattern ' ^version\s*=\s*"(?<ver>.*?)"$'
19
21
if ($null -eq $match ) {
Original file line number Diff line number Diff line change 6
6
# PSDesiredStateConfiguration 2.0.7 module will be saved in the DSC build
7
7
# in Windows PowerShell, we should always use version 1.1 that ships in Windows
8
8
if ($PSVersionTable.PSVersion.Major -gt 5 ) {
9
- $PSDesiredStateConfiguration = Import-Module " $PSScriptRoot /../PSDesiredStateConfiguration/2.0.7/PSDesiredStateConfiguration.psd1" - Force - PassThru
9
+ $parentFolder = (Get-Item (Resolve-Path $PSScriptRoot ).Path).Parent
10
+ $PSDesiredStateConfiguration = Import-Module " $parentFolder /PSDesiredStateConfiguration/2.0.7/PSDesiredStateConfiguration.psd1" - Force - PassThru
10
11
}
11
12
else {
12
13
$env: PSModulePath += " ;$env: windir \System32\WindowsPowerShell\v1.0\Modules"
You can’t perform that action at this time.
0 commit comments