Skip to content

Instantly share code, notes, and snippets.

View akhilputhiry's full-sized avatar

Akhil Lawrence akhilputhiry

  • Thrissur, Kerala, India
View GitHub Profile
@akhilputhiry
akhilputhiry / update-java.sh
Last active December 7, 2017 18:40
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