From 9f2d4b6687743e413b4e6095de69b98bd711bc9d Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 22 Sep 2022 18:52:25 +0200 Subject: [PATCH] Set scripts to new run_directory norm --- firefox-backup.sh | 3 ++- install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/firefox-backup.sh b/firefox-backup.sh index 4a51e47..65f26b3 100644 --- a/firefox-backup.sh +++ b/firefox-backup.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" # Remove old archive old="$backups_directory/profile-$(date -d "-10 days" +'%Y%m%d').tgz" diff --git a/install.sh b/install.sh index 5365956..e3c42a3 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) if [ -f $run_directory/.disabled ]; then