#!/bin/sh
# vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :

set -e

if [ ! -f "$1" ]; then
	echo "$1: file not valid!"
	exit 1
fi

curl --upload-file "$1" https://transfer.sh/"$(basename "$1")"
echo
