From 11db96cb906f7bb62439ec33f5240c112743f539 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 22 Sep 2022 18:45:35 +0200 Subject: [PATCH] Set main script to new run_directory norm --- conf-sync.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf-sync.sh b/conf-sync.sh index 089358b..8daf4b8 100755 --- a/conf-sync.sh +++ b/conf-sync.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" for dir in $sync_directory/*; do git -C $dir rev-parse 2>/dev/null >/dev/null