Skip to content

Commit

Permalink
Fix for PowerShell Core
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Grignoli committed Jan 13, 2020
1 parent 9330962 commit 967751e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ image: Visual Studio 2019
init:
- git config --global core.autocrlf true

on_finish:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

before_build:
- nuget restore src\gsudo.sln
Expand Down
2 changes: 1 addition & 1 deletion src/gsudo/GlobalSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class GlobalSettings
public static RegistrySetting<bool> CopyEnvironmentVariables { get; internal set; } = new RegistrySetting<bool>(nameof(CopyEnvironmentVariables), false, bool.Parse);
public static RegistrySetting<bool> CopyNetworkShares { get; internal set; } = new RegistrySetting<bool>(nameof(CopyNetworkShares), false, bool.Parse);
public static RegistrySetting<string> PowerShellArguments { get; set; } = new RegistrySetting<string>(nameof(PowerShellArguments), "-NoProfile", (s) => s);
public static RegistrySetting<string> PowerShellCore6Arguments { get; set; } = new RegistrySetting<string>(nameof(PowerShellCore6Arguments), "", (s) => s);
public static RegistrySetting<string> PowerShellCore6Arguments { get; set; } = new RegistrySetting<string>(nameof(PowerShellCore6Arguments), "-Command", (s) => s);
public static RegistrySetting<string> PowerShellCore7Arguments { get; set; } = new RegistrySetting<string>(nameof(PowerShellCore7Arguments), "-Command", (s) => s);
public static IDictionary<string, RegistrySetting> AllKeys => new Dictionary<string, RegistrySetting>(StringComparer.OrdinalIgnoreCase)
.Add(
Expand Down

0 comments on commit 967751e

Please sign in to comment.