summaryrefslogtreecommitdiff
path: root/bin/up
blob: 52d95482f73e91cc9c66894ccf694a1081b170b5 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# up.khirnov.net 0x0 instance
if [ "$1" ]; then
    fname=$(basename "$1")
else
    fname="-"
fi

url=$(curl -sS -E ~/.local/var/up/cert -F "file=@${fname}" "https://up.khirnov.net/")
[ "${url}" ] && echo "${url}"