aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Peter Mounce <petermounce@improbable.io>2017-11-28 09:36:21 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-28 09:37:50 -0800
commit5c7fc5b114b88e4737bf47ac6085789a190f0d45 (patch)
tree2ce4e5fa99992c960dcc01790d69b63df1ced182 /scripts
parentf8003cc399202c4b3fabade424235e643f99ea5c (diff)
macOS compatibility in build.ps1.
Apparently powershell on macOS is a thing now... However, chocolatey does not yet seem to be... cc @dslomov Closes #4026. PiperOrigin-RevId: 177172660
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"