aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/packages/chocolatey/build.ps114
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/packages/chocolatey/build.ps1 b/scripts/packages/chocolatey/build.ps1
index 4bc6e7e6c9..3be70d696b 100644
--- a/scripts/packages/chocolatey/build.ps1
+++ b/scripts/packages/chocolatey/build.ps1
@@ -35,19 +35,19 @@ if ($fixPackage -eq $true) {
}
$tvPackageFixVersion = "$($prefix)$((get-date).tostring("yyyyMMdd_hhmmss"))"
}
-rm -force -ErrorAction SilentlyContinue "./*.nupkg"
-rm -force -ErrorAction SilentlyContinue "./bazel.nuspec"
-rm -force -ErrorAction SilentlyContinue "./tools/LICENSE*"
-rm -force -ErrorAction SilentlyContinue "./tools/*.orig"
-rm -force -ErrorAction SilentlyContinue "./tools/params.*"
+remove-item -force -ErrorAction SilentlyContinue "./*.nupkg"
+remove-item -force -ErrorAction SilentlyContinue "./bazel.nuspec"
+remove-item -force -ErrorAction SilentlyContinue "./tools/LICENSE*"
+remove-item -force -ErrorAction SilentlyContinue "./tools/*.orig"
+remove-item -force -ErrorAction SilentlyContinue "./tools/params.*"
if ($checksum -eq "") {
- rm -force -ErrorAction SilentlyContinue ./*.zip
+ remove-item -force -ErrorAction SilentlyContinue ./*.zip
}
if (($mode -eq "release") -or ($mode -eq "rc")) {
Invoke-WebRequest "$($tvUri).sha256" -UseBasicParsing -passthru -outfile sha256.txt
$tvChecksum = (gc sha256.txt).split(' ')[0]
- rm sha256.txt
+ remove-item sha256.txt
} elseif ($mode -eq "local") {
Add-Type -A System.IO.Compression.FileSystem
$outputDir = "$pwd/../../../output"