mirror of
https://github.com/raynormast/fake-firehose.git
synced 2024-12-31 12:18:19 +00:00
Change how archive directory is structured; create folder if needed
This commit is contained in:
parent
d3accb4d65
commit
3a5a2c34e3
1 changed files with 10 additions and 1 deletions
|
@ -36,6 +36,12 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|
||||||
|
if [[ ! -d "/data/$today/" ]]
|
||||||
|
then
|
||||||
|
mkdir -p "/data/$today/"
|
||||||
|
fi
|
||||||
|
|
||||||
curl -X "GET" "$url" --no-progress-meter >> "/data/$today/$today.$host.json"
|
curl -X "GET" "$url" --no-progress-meter >> "/data/$today/$today.$host.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -46,3 +52,6 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
## Exit 0 by default
|
||||||
|
exit 0
|
Loading…
Reference in a new issue