mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-09 07:28:43 +00:00
Resolve paths in OnionShare script
This commit is contained in:
@@ -8,7 +8,10 @@ fi
|
||||
|
||||
# get subdomain from config
|
||||
subdomain=$(jq -r '.subdomain' "$CONFIG")
|
||||
DIR="host/${subdomain}"
|
||||
|
||||
# resolve paths to absolute locations so the script works from anywhere
|
||||
CONFIG="$(realpath "$CONFIG")"
|
||||
DIR="$(realpath "host/$subdomain")"
|
||||
if [[ ! -d "$DIR" ]]; then
|
||||
echo "Directory $DIR not found" >&2
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user