X Tutup
Skip to content

Commit 3d6bfa3

Browse files
committed
Standardize cmdlet capitalization in Windows CI scripts.
This patch standardizes the capitalization of PowerShell commandlets in the Windows CI setup script in accordance with general PowerShell best practices. Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
1 parent d055487 commit 3d6bfa3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

script/setup/prepare_env_windows.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
$PACKAGES= @{ mingw = "10.2.0"; git = ""; golang = "1.17.3"; make = ""; nssm = "" }
44

5-
write-host "Downloading chocolatey package"
5+
Write-Host "Downloading chocolatey package"
66
curl.exe -L "https://packages.chocolatey.org/chocolatey.0.10.15.nupkg" -o 'c:\choco.zip'
77
Expand-Archive "c:\choco.zip" -DestinationPath "c:\choco"
88

9-
write-host "Installing choco"
9+
Write-Host "Installing choco"
1010
& "c:\choco\tools\chocolateyInstall.ps1"
1111

12-
write-host "Set choco.exe path."
12+
Write-Host "Set choco.exe path."
1313
$env:PATH+=";C:\ProgramData\chocolatey\bin"
1414

15-
write-host "Install necessary packages"
15+
Write-Host "Install necessary packages"
1616

1717
foreach ($package in $PACKAGES.Keys) {
1818
$command = "choco.exe install $package --yes"
@@ -23,12 +23,12 @@ foreach ($package in $PACKAGES.Keys) {
2323
Invoke-Expression $command
2424
}
2525

26-
write-host "Set up environment."
26+
Write-Host "Set up environment."
2727

2828
$path = ";c:\Program Files\Git\bin;c:\Program Files\Go\bin;c:\Users\azureuser\go\bin;c:\containerd\bin"
2929
$env:PATH+=$path
3030

31-
write-host $env:PATH
31+
Write-Host $env:PATH
3232

3333
[Environment]::SetEnvironmentVariable("PATH", $env:PATH, 'User')
3434

0 commit comments

Comments
 (0)
X Tutup