Created
June 2, 2017 20:24
-
-
Save simon04/9f91db9103c27b108fbe9511dee340b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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