diff --git a/scripts/stream-url.sh b/scripts/stream-url.sh index a0b6193..9a72801 100644 --- a/scripts/stream-url.sh +++ b/scripts/stream-url.sh @@ -36,6 +36,12 @@ do fi done else + + if [[ ! -d "/data/$today/" ]] + then + mkdir -p "/data/$today/" + fi + curl -X "GET" "$url" --no-progress-meter >> "/data/$today/$today.$host.json" fi @@ -45,4 +51,7 @@ do sleep 5m; fi -done \ No newline at end of file +done + +## Exit 0 by default +exit 0 \ No newline at end of file