about summary refs log tree commit diff
path: root/0x0
blob: 7e767b69dbf4c3fad49de87f207cae6aaaf57f09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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}"

Consider giving Nix/NixOS a try! <3