diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-15 19:51:15 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-15 19:51:15 +0300 |
commit | 4f96f9fecb8c952fa32ff791b0a77d93d5191bb4 (patch) | |
tree | b6b53d62e11d5f650ab2a346d941636fb24759e6 /action.yml | |
parent | README: update (diff) | |
download | setup-cygwin-4f96f9fecb8c952fa32ff791b0a77d93d5191bb4.tar.gz setup-cygwin-4f96f9fecb8c952fa32ff791b0a77d93d5191bb4.zip |
choco scripting best practicesv3.0.0
Diffstat (limited to 'action.yml')
-rw-r--r-- | action.yml | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -53,15 +53,15 @@ runs: $choco = Locate-Choco $choco_params = @( - 'install', + 'upgrade', + 'cygwin', '-y', '--no-progress', - '--params', "/InstallDir:$install_dir" + "--package-parameters='/InstallDir:$install_dir'" ) if (!$x64) { $choco_params += '--x86' } - $choco_params += 'cygwin' # Assuming that Cygwin is not installed when this is run. & $choco $choco_params @@ -71,7 +71,7 @@ runs: $pkg_list = $packages.Split(' ', [System.StringSplitOptions]::RemoveEmptyEntries) if ($pkg_list.Count -gt 0) { - & $choco install -y --no-progress --source=cygwin $pkg_list + & $choco install $pkg_list -y --no-progress --source=cygwin } shell: pwsh |