blob: 75c386bd8feff6d7c8c03fdd192108e62a4791ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
# ups.khirnov.net uploader
if [ "$1" ]; then
fpath=$1
else
fpath="-"
fi
url=$(curl -sS -E ~/.local/var/up/cert --data-binary "@${fpath}" "https://ups.khirnov.net/${fpath}")
[ "${url}" ] && echo "${url}"
|