Better basename in torshare
This commit is contained in:
parent
03860b2b74
commit
84ea2d0e6c
|
|
@ -28,7 +28,7 @@ urlencode () {
|
||||||
}
|
}
|
||||||
|
|
||||||
tor_host="$(instant_tor --daemonize)" || { echo "Failed to start tor proxy"; exit 3; }
|
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
|
link="$(pub << GET_FILE_VIA_TOR
|
||||||
#! /bin/sh -
|
#! /bin/sh -
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue