Skip to content

Instantly share code, notes, and snippets.


Akhil Lawrence akhilputhiry

View GitHub Profile
akhilputhiry /
Last active Dec 7, 2017
Check installed java version and upgrade if new release is available
#! /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