tiddlypwa/bunny.sh
2025-01-07 00:28:35 -03:00

8 lines
246 B
Bash
Executable file

#!/bin/sh
set -e
cd output
find * -type f -exec curl --fail --request PUT \
--url https://storage.bunnycdn.com/$BUNNY_BUCKET/{} \
--header "AccessKey: $BUNNY_KEY" \
--header "Content-Type: application/octet-stream" \
--data-binary @{} \;