You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
591 B
Bash
18 lines
591 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Copyright (c) Contributors to the Open 3D Engine Project
|
|
#
|
|
# 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 |