Better basename in torshare

This commit is contained in:
tosu 2024-06-21 18:23:54 +02:00
parent 03860b2b74
commit 84ea2d0e6c
1 changed files with 1 additions and 1 deletions

View File

@ -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 -