I’ve been fleshing it out a bit more since
I have a batch on my home desktop that now places a file on the server
the cron runs every 5 minutes in a offline mode to check if the file exists, if so it will update
otherwise online mode leeches of a curl json response
really is the first bash script I’ve hacked up
as for code, I have an old version I posted a screenshot of on facepunch
https://jii.moe/EkzIZsp1Z.png
the if statement doesn’t work as planned and I use a !=
instead now because why not
Also uses jq 1.5 because json objects, as much as I hate dependencies, it’s recommended over awk for this case