#!/bin/bash curl -s https://transiscope.gogocarto.fr/api/elements | jq .data > /tmp/tmp_transiscope.json || exit 1 [[ -f transiscope.json ]] && rm transiscope.json mv /tmp/tmp_transiscope.json transiscope.json exit 0