Created
November 22, 2021 13:50
-
-
Save Bananamilk452/84d738034009b2c9a001f612b1ec7b2b to your computer and use it in GitHub Desktop.
Install Java and Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo add-apt-repository ppa:linuxuprising/java -y | |
sudo apt update | |
sudo apt install oracle-java17-installer -y | |
java=$(java --version) | |
if [[ $java == *"Runtime"* ]] | |
then | |
echo "설치 완료!" | |
else | |
echo "설치 실패" | |
fi | |
echo "eula=true" >> eula.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment