From aac6bc62ea1c083560dc9483cba740f22f3ffd2d Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 22 Sep 2022 18:55:15 +0200 Subject: [PATCH] Set scripts to new run_directory norm --- install.sh | 2 +- transmission-vpn.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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