#!/bin/sh # thanks tsukasa for script if [ -z "$1" ]; then echo "Usage: $(basename "$0") " >&2 exit 1 fi if [ ! -f "$1" ]; then echo "Error: File '$1' not found." >&2 exit 1 fi curl -F "file=@$1" http://f.ohmu.pw/upload