b4a2edec6a
* Final update copyright headers to reference license files at the repo root Signed-off-by: spham <spham@amazon.com> * Fix copyright validator unit tests to support the stale O3DE header scenario Signed-off-by: spham <spham@amazon.com>
18 lines
690 B
Bash
Executable File
18 lines
690 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
#
|
|
|
|
JDK_VERSION="8.282.08.1"
|
|
|
|
echo "Installing Corretto JDK ${JDK_VERSION}"
|
|
curl -o /tmp/amazon-corretto-${JDK_VERSION}-macosx-x64.pkg https://corretto.aws/downloads/resources/${JDK_VERSION}/amazon-corretto-${JDK_VERSION}-macosx-x64.pkg
|
|
if sudo installer -allowUntrusted -pkg /tmp/amazon-corretto-${JDK_VERSION}-macosx-x64.pkg -target / ; then
|
|
rm /tmp/amazon-corretto-${JDK_VERSION}-macosx-x64.pkg
|
|
else
|
|
echo "Installation failed!"
|
|
exit 1
|
|
fi |