File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
PSFramework/internal/scripts Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,9 @@ if ($IsLinux -or $IsMacOs)
6161}
6262else
6363{
64- # Defaults to $Env:ProgramData on Windows
65- $script :path_FileSystem = Join-Path $Env: ProgramData " $psVersionName \PSFramework\Config"
66- $script :path_ProgramData = $env: ProgramData
67- if (-not $script :path_FileSystem )
68- {
69- $script :path_ProgramData = [Environment ]::GetFolderPath(" CommonApplicationData" )
70- $script :path_FileSystem = Join-Path ([Environment ]::GetFolderPath(" CommonApplicationData" )) " $psVersionName \PSFramework\Config"
71- }
64+ $localProgramData = if ($env: ProgramData ) { $env: ProgramData } else { [Environment ]::GetFolderPath(" CommonApplicationData" ) }
65+ $script :path_FileSystem = Join-Path $localProgramData " $psVersionName \PSFramework\Config"
66+ $script :path_ProgramData = $localProgramData
7267}
7368# endregion System
7469
You can’t perform that action at this time.
0 commit comments