#!/usr/bin/env sh

if command -v curl-tor >/dev/null 2>&1; then
  curl-tor -F"file=<-" https://0x0.st
else
  curl -F "file=@${1:--}" https://0x0.st/
fi
