diff --git a/install.sh b/install.sh index f3e0cf2..2eeb313 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) user=$(whoami) source "$run_directory/variables.conf" diff --git a/transmission-vpn.sh b/transmission-vpn.sh index a8c2c3e..e9053f4 100755 --- a/transmission-vpn.sh +++ b/transmission-vpn.sh @@ -9,7 +9,7 @@ # We can enter an infinite loop, but this will effectively prevent transmission from connecting # If both services are stopped, this script will never be run by error -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) source "$run_directory/variables.conf" # Parameters