summaryrefslogtreecommitdiff
path: root/bin/up
diff options
context:
space:
mode:
Diffstat (limited to 'bin/up')
-rwxr-xr-xbin/up6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/up b/bin/up
index 52d9548..7d68980 100755
--- a/bin/up
+++ b/bin/up
@@ -1,10 +1,10 @@
#!/bin/bash
# up.khirnov.net 0x0 instance
if [ "$1" ]; then
- fname=$(basename "$1")
+ fpath=$1
else
- fname="-"
+ fpath="-"
fi
-url=$(curl -sS -E ~/.local/var/up/cert -F "file=@${fname}" "https://up.khirnov.net/")
+url=$(curl -sS -E ~/.local/var/up/cert -F "file=@${fpath}" "https://up.khirnov.net/")
[ "${url}" ] && echo "${url}"