From f4e4ce7203029b464b30bc3eb2d530992c22339b Mon Sep 17 00:00:00 2001 From: Aditya Shastri Date: Mon, 22 Jan 2024 18:14:23 -0800 Subject: [PATCH] Updated the $ErrorActionPreference = 'Stop' on all powershell scripts. --- LibericaMissionControl/tools/chocolateyinstall.ps1 | 1 + liberica-11-jdk/tools/chocolateyinstall.ps1 | 1 + liberica-11-jdkfull/tools/chocolateyinstall.ps1 | 1 + liberica-11-jre/tools/chocolateyinstall.ps1 | 1 + liberica-11-jrefull/tools/chocolateyinstall.ps1 | 1 + liberica-17-jdk/tools/chocolateyinstall.ps1 | 1 + liberica-17-jdkfull/tools/chocolateyinstall.ps1 | 1 + liberica-17-jdklite/tools/chocolateyinstall.ps1 | 1 + liberica-17-jre/tools/chocolateyinstall.ps1 | 1 + liberica-17-jrefull/tools/chocolateyinstall.ps1 | 1 + liberica-21-jdk/tools/chocolateyinstall.ps1 | 1 + liberica-21-jdkfull/tools/chocolateyinstall.ps1 | 1 + liberica-21-jdklite/tools/chocolateyinstall.ps1 | 1 + liberica-21-jre/tools/chocolateyinstall.ps1 | 1 + liberica-21-jrefull/liberica21jrefull.nuspec | 2 +- liberica-21-jrefull/tools/chocolateyinstall.ps1 | 1 + liberica-8-jdk/tools/chocolateyinstall.ps1 | 1 + liberica-8-jre/tools/chocolateyinstall.ps1 | 1 + liberica-jdk/tools/chocolateyinstall.ps1 | 1 + liberica-jdkfull/tools/chocolateyinstall.ps1 | 1 + liberica-jdklite/tools/chocolateyinstall.ps1 | 1 + liberica-jre/tools/chocolateyinstall.ps1 | 1 + liberica-jrefull/tools/chocolateyinstall.ps1 | 1 + 23 files changed, 23 insertions(+), 1 deletion(-) diff --git a/LibericaMissionControl/tools/chocolateyinstall.ps1 b/LibericaMissionControl/tools/chocolateyinstall.ps1 index 9364ab9..b40f0ba 100644 --- a/LibericaMissionControl/tools/chocolateyinstall.ps1 +++ b/LibericaMissionControl/tools/chocolateyinstall.ps1 @@ -1,4 +1,5 @@ # Path to the folder where the script is executing +$ErrorActionPreference = 'Stop' $toolsDir = (Split-Path -parent $MyInvocation.MyCommand.Definition) $packageArgs = @{ diff --git a/liberica-11-jdk/tools/chocolateyinstall.ps1 b/liberica-11-jdk/tools/chocolateyinstall.ps1 index d074230..c0db1ee 100644 --- a/liberica-11-jdk/tools/chocolateyinstall.ps1 +++ b/liberica-11-jdk/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/11.0.22+12/bellsoft-jdk11.0.22+12-windows-amd64.msi' diff --git a/liberica-11-jdkfull/tools/chocolateyinstall.ps1 b/liberica-11-jdkfull/tools/chocolateyinstall.ps1 index 3239da0..a4a096d 100644 --- a/liberica-11-jdkfull/tools/chocolateyinstall.ps1 +++ b/liberica-11-jdkfull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/11.0.22+12/bellsoft-jdk11.0.22+12-windows-amd64-full.msi' diff --git a/liberica-11-jre/tools/chocolateyinstall.ps1 b/liberica-11-jre/tools/chocolateyinstall.ps1 index 03ec44b..c32a0b6 100644 --- a/liberica-11-jre/tools/chocolateyinstall.ps1 +++ b/liberica-11-jre/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/11.0.22+12/bellsoft-jre11.0.22+12-windows-amd64.msi' diff --git a/liberica-11-jrefull/tools/chocolateyinstall.ps1 b/liberica-11-jrefull/tools/chocolateyinstall.ps1 index dd59349..b6d4bfc 100644 --- a/liberica-11-jrefull/tools/chocolateyinstall.ps1 +++ b/liberica-11-jrefull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/11.0.22+12/bellsoft-jre11.0.22+12-windows-amd64-full.msi' diff --git a/liberica-17-jdk/tools/chocolateyinstall.ps1 b/liberica-17-jdk/tools/chocolateyinstall.ps1 index 284370e..6cd090c 100644 --- a/liberica-17-jdk/tools/chocolateyinstall.ps1 +++ b/liberica-17-jdk/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/17.0.10+13/bellsoft-jdk17.0.10+13-windows-amd64.msi' diff --git a/liberica-17-jdkfull/tools/chocolateyinstall.ps1 b/liberica-17-jdkfull/tools/chocolateyinstall.ps1 index 9dad94f..f805db7 100644 --- a/liberica-17-jdkfull/tools/chocolateyinstall.ps1 +++ b/liberica-17-jdkfull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/17.0.10+13/bellsoft-jdk17.0.10+13-windows-amd64-full.msi' diff --git a/liberica-17-jdklite/tools/chocolateyinstall.ps1 b/liberica-17-jdklite/tools/chocolateyinstall.ps1 index 8353eb9..3a025c0 100644 --- a/liberica-17-jdklite/tools/chocolateyinstall.ps1 +++ b/liberica-17-jdklite/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/17.0.10+13/bellsoft-jdk17.0.10+13-windows-amd64-lite.msi' diff --git a/liberica-17-jre/tools/chocolateyinstall.ps1 b/liberica-17-jre/tools/chocolateyinstall.ps1 index 702843f..ffa0c09 100644 --- a/liberica-17-jre/tools/chocolateyinstall.ps1 +++ b/liberica-17-jre/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/17.0.10+13/bellsoft-jre17.0.10+13-windows-amd64.msi' diff --git a/liberica-17-jrefull/tools/chocolateyinstall.ps1 b/liberica-17-jrefull/tools/chocolateyinstall.ps1 index 7126ebd..04b5241 100644 --- a/liberica-17-jrefull/tools/chocolateyinstall.ps1 +++ b/liberica-17-jrefull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/17.0.10+13/bellsoft-jre17.0.10+13-windows-amd64-full.msi' diff --git a/liberica-21-jdk/tools/chocolateyinstall.ps1 b/liberica-21-jdk/tools/chocolateyinstall.ps1 index 81b24a5..65409b9 100644 --- a/liberica-21-jdk/tools/chocolateyinstall.ps1 +++ b/liberica-21-jdk/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jdk21.0.2+14-windows-amd64.msi' diff --git a/liberica-21-jdkfull/tools/chocolateyinstall.ps1 b/liberica-21-jdkfull/tools/chocolateyinstall.ps1 index a4da86a..c41f1ee 100644 --- a/liberica-21-jdkfull/tools/chocolateyinstall.ps1 +++ b/liberica-21-jdkfull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jdk21.0.2+14-windows-amd64-full.msi' diff --git a/liberica-21-jdklite/tools/chocolateyinstall.ps1 b/liberica-21-jdklite/tools/chocolateyinstall.ps1 index dd3678a..24f3cec 100644 --- a/liberica-21-jdklite/tools/chocolateyinstall.ps1 +++ b/liberica-21-jdklite/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jdk21.0.2+14-windows-amd64-lite.msi' diff --git a/liberica-21-jre/tools/chocolateyinstall.ps1 b/liberica-21-jre/tools/chocolateyinstall.ps1 index 2d82a83..64ed391 100644 --- a/liberica-21-jre/tools/chocolateyinstall.ps1 +++ b/liberica-21-jre/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jre21.0.2+14-windows-amd64.msi' diff --git a/liberica-21-jrefull/liberica21jrefull.nuspec b/liberica-21-jrefull/liberica21jrefull.nuspec index 49b6e80..d1d25ac 100644 --- a/liberica-21-jrefull/liberica21jrefull.nuspec +++ b/liberica-21-jrefull/liberica21jrefull.nuspec @@ -3,7 +3,7 @@ liberica21jrefull 21.0.2.14 - https://github.com/ajshastri/chocolatey-packages + https://github.com/ajshastri/chocolatey-packages/tree/master/liberica-21-jrefull https://rawcdn.githack.com/ajshastri/chocolatey-packages/a698d21b3c63b9ff7e01f442f37cdb7ecf89925a/icons/bell_sw_logo.png Liberica JRE full includes LibericaFX and Minimal VM BellSoft diff --git a/liberica-21-jrefull/tools/chocolateyinstall.ps1 b/liberica-21-jrefull/tools/chocolateyinstall.ps1 index 73e8dda..b0858df 100644 --- a/liberica-21-jrefull/tools/chocolateyinstall.ps1 +++ b/liberica-21-jrefull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jre21.0.2+14-windows-amd64-full.msi' diff --git a/liberica-8-jdk/tools/chocolateyinstall.ps1 b/liberica-8-jdk/tools/chocolateyinstall.ps1 index 8da25b6..16a0a3e 100644 --- a/liberica-8-jdk/tools/chocolateyinstall.ps1 +++ b/liberica-8-jdk/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/8u402+7/bellsoft-jdk8u402+7-windows-amd64.msi' diff --git a/liberica-8-jre/tools/chocolateyinstall.ps1 b/liberica-8-jre/tools/chocolateyinstall.ps1 index f77caf0..5a8bbeb 100644 --- a/liberica-8-jre/tools/chocolateyinstall.ps1 +++ b/liberica-8-jre/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/8u402+7/bellsoft-jre8u402+7-windows-amd64.msi' diff --git a/liberica-jdk/tools/chocolateyinstall.ps1 b/liberica-jdk/tools/chocolateyinstall.ps1 index 81b24a5..65409b9 100644 --- a/liberica-jdk/tools/chocolateyinstall.ps1 +++ b/liberica-jdk/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jdk21.0.2+14-windows-amd64.msi' diff --git a/liberica-jdkfull/tools/chocolateyinstall.ps1 b/liberica-jdkfull/tools/chocolateyinstall.ps1 index a4da86a..c41f1ee 100644 --- a/liberica-jdkfull/tools/chocolateyinstall.ps1 +++ b/liberica-jdkfull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jdk21.0.2+14-windows-amd64-full.msi' diff --git a/liberica-jdklite/tools/chocolateyinstall.ps1 b/liberica-jdklite/tools/chocolateyinstall.ps1 index dd3678a..24f3cec 100644 --- a/liberica-jdklite/tools/chocolateyinstall.ps1 +++ b/liberica-jdklite/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jdk21.0.2+14-windows-amd64-lite.msi' diff --git a/liberica-jre/tools/chocolateyinstall.ps1 b/liberica-jre/tools/chocolateyinstall.ps1 index 2d82a83..64ed391 100644 --- a/liberica-jre/tools/chocolateyinstall.ps1 +++ b/liberica-jre/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jre21.0.2+14-windows-amd64.msi' diff --git a/liberica-jrefull/tools/chocolateyinstall.ps1 b/liberica-jrefull/tools/chocolateyinstall.ps1 index 73e8dda..b0858df 100644 --- a/liberica-jrefull/tools/chocolateyinstall.ps1 +++ b/liberica-jrefull/tools/chocolateyinstall.ps1 @@ -1,3 +1,4 @@ +$ErrorActionPreference = 'Stop' $packageArgs = @{ PackageName = $env:ChocolateyPackageName Url64bit = 'https://github.com/bell-sw/Liberica/releases/download/21.0.2+14/bellsoft-jre21.0.2+14-windows-amd64-full.msi'