Skip to content

Commit

Permalink
Added ErrorActionPreference to missing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshastri committed Jan 29, 2024
1 parent dd059a2 commit 0e34d50
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions JMC/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
# Path to the folder where the script is executing
$toolsDir = (Split-Path -parent $MyInvocation.MyCommand.Definition)

Expand Down
1 change: 1 addition & 0 deletions OpenJDK/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\OpenJDK"

Expand Down
1 change: 1 addition & 0 deletions WildFly/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\WildFly"

Expand Down
1 change: 1 addition & 0 deletions corretto-jdk-11/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://corretto.aws/downloads/resources/11.0.22.7.1/amazon-corretto-11.0.22.7.1-windows-x64.msi'
Expand Down
1 change: 1 addition & 0 deletions corretto-jdk-17/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://corretto.aws/downloads/resources/17.0.10.7.1/amazon-corretto-17.0.10.7.1-windows-x64.msi'
Expand Down
1 change: 1 addition & 0 deletions corretto-jdk-21/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://corretto.aws/downloads/resources/21.0.2.13.1/amazon-corretto-21.0.2.13.1-windows-x64.msi'
Expand Down
1 change: 1 addition & 0 deletions corretto-jdk-8/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://corretto.aws/downloads/resources/8.402.08.1/amazon-corretto-8.402.08.1-windows-x64-jdk.msi'
Expand Down
1 change: 1 addition & 0 deletions corretto-jdk/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://corretto.aws/downloads/resources/21.0.2.13.1/amazon-corretto-21.0.2.13.1-windows-x64.msi'
Expand Down
1 change: 1 addition & 0 deletions corretto-jre-8/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://corretto.aws/downloads/resources/8.402.08.1/amazon-corretto-8.402.08.1-windows-x64-jre.msi'
Expand Down
3 changes: 2 additions & 1 deletion httpd-apache/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
$ErrorActionPreference = 'Stop'
$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
. "$toolsDir\helpers.ps1"

$pp = Get-PackageParameters
Expand Down
1 change: 1 addition & 0 deletions mvndaemon/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\mvndaemon"

Expand Down
1 change: 1 addition & 0 deletions sapmachine-11-jdk/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.22/sapmachine-jdk-11.0.22_windows-x64_bin.msi'
Expand Down
1 change: 1 addition & 0 deletions sapmachine-11-jre/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.22/sapmachine-jre-11.0.22_windows-x64_bin.msi'
Expand Down
1 change: 1 addition & 0 deletions sapmachine-17-jdk/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.10/sapmachine-jdk-17.0.10_windows-x64_bin.msi'
Expand Down
1 change: 1 addition & 0 deletions sapmachine-17-jre/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-17.0.10/sapmachine-jre-17.0.10_windows-x64_bin.msi'
Expand Down
1 change: 1 addition & 0 deletions sapmachine-21-jdk/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.2/sapmachine-jdk-21.0.2_windows-x64_bin.msi'
Expand Down
1 change: 1 addition & 0 deletions sapmachine-21-jre/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.2/sapmachine-jre-21.0.2_windows-x64_bin.msi'
Expand Down
1 change: 1 addition & 0 deletions sapmachine-jdk/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.2/sapmachine-jdk-21.0.2_windows-x64_bin.msi'
Expand Down
1 change: 1 addition & 0 deletions sapmachine-jre/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'
$packageArgs = @{
PackageName = $env:ChocolateyPackageName
Url64bit = 'https://github.com/SAP/SapMachine/releases/download/sapmachine-21.0.2/sapmachine-jre-21.0.2_windows-x64_bin.msi'
Expand Down

0 comments on commit 0e34d50

Please sign in to comment.