Now if I could just work out why I cannot get maps.txt to work...
#!/bin/sh DIR=/home/user/.gpxsee if [ -d "$DIR" ]; then rm -rf "$DIR" fi mkdir $DIR map=Map1' 'http://a.tile.openstreetmap.org/\$z/\$x/\$y.png printf '%s\n' "$map" > "$DIR"/maps.txt chmod 755 "$DIR"/maps.txt