diff --git a/conts-snap.sh b/conts-snap.sh index fe33180..55825c8 100755 --- a/conts-snap.sh +++ b/conts-snap.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -source "$(dirname "$0")/variables.conf" +run_directory=$(dirname $(readlink -f "$0")) +source "$run_directory/variables.conf" mount $containers_dir diff --git a/install.sh b/install.sh index f9f3bba..a98fb36 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"