From db1c347c8afd8a913bf7823988c72f90d4652198 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 22 Sep 2022 18:50:02 +0200 Subject: [PATCH] Set scripts to new run_directory norm --- conts-snap.sh | 3 ++- install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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"