The script is also curl-centric, as they don't even check for other downloading tools. So much curl, and yet so little use of "-f" :-(
I also had no idea that S3 returned its archiving rules in a header:
< x-amz-expiration: expiry-date="Sat, 27 Aug 2022 00:00:00 GMT", rule-id="Move objects to archive"
They seriously detect curl as the user agent and return a bash script instead of a website... wtf :/.