diff options
Diffstat (limited to 'bin/ups')
-rwxr-xr-x | bin/ups | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,10 +2,10 @@ # ups.khirnov.net uploader if [ "$1" ]; then - fname=$(basename "$1") + fpath=$1 else - fname="-" + fpath="-" fi -url=$(curl -sS -E ~/.local/var/up/cert --data-binary "@${fname}" "https://ups.khirnov.net/${fname}") +url=$(curl -sS -E ~/.local/var/up/cert --data-binary "@${fpath}" "https://ups.khirnov.net/${fpath}") [ "${url}" ] && echo "${url}" |