- test -e "${z}" || continue
- # Tiles /x/y/ were downloaded both in Marble and another application. Check each /x/y/z
- for z in ${y}/[0-9]*.png
- do
- fz="$(basename ${z})"
- echo -n "."
- # Overwrite the shared tile only if the Marble one is newer
- mv -u "${z}" "${target}"
- # If the shared tile was not overwritten, delete the Marble one now
- test -e "${z}" && rm "${z}"
- done
+ # Tiles /x/y/ were downloaded both in Marble and another application. Move each /x/y/z
+ mv "${y}"/[0-9]*.png "${target}"
+ rmdir "${y}" || true