From 84ea2d0e6c701e247007c09c0d2e71e55f241f7e Mon Sep 17 00:00:00 2001 From: tosu Date: Fri, 21 Jun 2024 18:23:54 +0200 Subject: [PATCH] Better basename in torshare --- .local/bin/torshare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/torshare b/.local/bin/torshare index f1c2bfa..4e69020 100755 --- a/.local/bin/torshare +++ b/.local/bin/torshare @@ -28,7 +28,7 @@ urlencode () { } tor_host="$(instant_tor --daemonize)" || { echo "Failed to start tor proxy"; exit 3; } -ln -sf "$(readlink -f -- "$target_file")" "/tmp/.tmptor/html/$(basename -- "$target_file")" +ln -sf "$(readlink -f -- "$target_file")" "/tmp/.tmptor/html/${target_file##*/}" link="$(pub << GET_FILE_VIA_TOR #! /bin/sh -