Skip to content

Instantly share code, notes, and snippets.

Avatar

Akhil Lawrence akhilputhiry

View GitHub Profile
@akhilputhiry
akhilputhiry / update-java.sh
Last active Dec 7, 2017
Check installed java version and upgrade if new release is available
View update-java.sh
#! /bin/bash
# function to install latest java
function download() {
echo "Downloading java $1"
# here you have to write curl or wget command to download java
# version to be downloaded will be available in $1
}
# get version of JAVA installed