Building a simple CPU in a robust way
for x in $(ls -d ./*/*/); do
y=${x:2};
z=$(echo ${y:0:$((${#y}-1))} | tr '/.' '__');
echo "# Creating ${z}.zip";
zip -r ${z}.zip $x;
doneaws s3api put-object \
--endpoint-url https://<account>.r2.cloudflarestorage.com \
--bucket <bucket> \
--key <TARGET> \
--body <LOCAL>