1#!/bin/sh
2
3if [ -z "$1" ]; then
4 echo "Usage: $(basename "$0") <filename>" >&2
5 exit 1
6fi
7
8if [ ! -f "$1" ]; then
9 echo "Error: File '$1' not found." >&2
10 exit 1
11fi
12
13curl -F "file=@$1" http://f.ohmu.pw/upload
14
1#!/bin/sh
2
3if [ -z "$1" ]; then
4 echo "Usage: $(basename "$0") <filename>" >&2
5 exit 1
6fi
7
8if [ ! -f "$1" ]; then
9 echo "Error: File '$1' not found." >&2
10 exit 1
11fi
12
13curl -F "file=@$1" http://f.ohmu.pw/upload
14