Skip to content

Commit

Permalink
(GH-406) rename function
Browse files Browse the repository at this point in the history
Rename function to something more readable.
  • Loading branch information
ferventcoder committed Sep 17, 2015
1 parent 9176e0c commit e6ac21c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ private string get_script_arguments(string script, ChocolateyConfiguration confi
{
return "-packageScript '{0}' -installArguments '{1}' -packageParameters '{2}'{3}{4}".format_with(
script,
prepare_for_powershell_arguments(config.InstallArguments),
prepare_for_powershell_arguments(config.PackageParameters),
prepare_powershell_arguments(config.InstallArguments),
prepare_powershell_arguments(config.PackageParameters),
config.ForceX86 ? " -forceX86" : string.Empty,
config.OverrideArguments ? " -overrideArgs" : string.Empty
);
}

private string prepare_for_powershell_arguments(string argument)
private string prepare_powershell_arguments(string argument)
{
return argument.to_string().Replace("\"", "\\\"");
}
Expand Down

0 comments on commit e6ac21c

Please sign in to comment.