summaryrefslogtreecommitdiff
path: root/bin/ups
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ups')
-rwxr-xr-xbin/ups6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ups b/bin/ups
index 8353f44..75c386b 100755
--- a/bin/ups
+++ b/bin/ups
@@ -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}"