File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 22$testPath = Resolve-Path - Path " $PSScriptRoot /tests/PSScriptAnalyzer" | Select-Object - ExpandProperty Path
33$path = [string ]::IsNullOrEmpty($env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path ) ? ' .' : $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path
44$codePath = Resolve-Path - Path $path | Select-Object - ExpandProperty Path
5+ $settingsFilePath = Resolve-Path - Path $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath | Select-Object - ExpandProperty Path
56
67[pscustomobject ]@ {
78 CodePath = $codePath
89 TestPath = $testPath
9- SettingsFilePath = $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath
10+ SettingsFilePath = $settingsFilePath
1011} | Format-List | Out-String
1112
12- if (! (Test-Path - Path $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath )) {
13- Write-Error " Settings file not found at path: $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath "
13+ if (! (Test-Path - Path $settingsFilePath )) {
14+ Write-Error " Settings file not found at path: $settingsFilePath "
1415 exit 1
1516}
1617
1718Set-GitHubOutput - Name CodePath - Value $codePath
1819Set-GitHubOutput - Name TestPath - Value $testPath
19- Set-GitHubOutput - Name SettingsFilePath - Value $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath
20+ Set-GitHubOutput - Name SettingsFilePath - Value $settingsFilePath
You can’t perform that action at this time.
0 commit comments