diff options
Diffstat (limited to 'bin/up')
-rwxr-xr-x | bin/up | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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}" |