Skip to content

Instantly share code, notes, and snippets.

@simon04
Created June 2, 2017 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simon04/9f91db9103c27b108fbe9511dee340b4 to your computer and use it in GitHub Desktop.
Save simon04/9f91db9103c27b108fbe9511dee340b4 to your computer and use it in GitHub Desktop.
#! /bin/bash
cd $(dirname $0)
verLocal=$(cat josm_version)
verRemote=$(wget -qO - http://josm.openstreetmap.de/latest)
echo local $verLocal remote $verRemote
if [ $verLocal -lt $verRemote ]; then
wget -O josm-latest.jar http://josm.openstreetmap.de/josm-latest.jar
echo $verRemote > josm_version
fi
java -jar josm-latest.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment