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