From 16267ea9664043618330fc610b8264fada858a52 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 22 Sep 2022 18:48:36 +0200 Subject: [PATCH] Set scripts to new run_directory norm --- boot-sms.sh | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boot-sms.sh b/boot-sms.sh index 7a978d7..9ff89a8 100755 --- a/boot-sms.sh +++ b/boot-sms.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) source "$run_directory/variables.conf" # Set parameters here diff --git a/install.sh b/install.sh index 7519365..479e8b6 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