#!/bin/sh for file in $(find public -type f) do echo "uploading: $file" curl -X PUT --data @$file -u "$USER:$PASSWORD" https://mdf.farm/api/${file#*/} done