#!/bin/sh url="https://0x0.st" form="file=@" if [ -t 0 ] && [ -n "${1}" ]; then form="${form}${1}" else form="${form}-" fi curl --form "${form}" "${url}"