#!/bin/bash function wrapper { filename="sitemap.xml" if [ ! -f "$filename" ]; then echo "Error: $filename is not a file." exit 1 fi curl -s -X POST -H "X-File-Name: $filename" -H "Content-Type: application/octet-stream" --data-binary "@$filename" https://webclip.sequentialread.com/ } wrapper