From 3343762acc890e76ec466d27cd8e68b7cc877c10 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 9 May 2023 22:58:36 +0200 Subject: [PATCH] FILE --- bash.d/main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash.d/main.sh b/bash.d/main.sh index 732bad3..71452c3 100644 --- a/bash.d/main.sh +++ b/bash.d/main.sh @@ -1,11 +1,11 @@ #! /usr/bin/env bash -PATH="$(realpath "${BASH_SOURCE[0]}")" -ROOT="$(dirname "${PATH}")" +FILE="$(realpath "${BASH_SOURCE[0]}")" +ROOT="$(dirname "${FILE}")" function main { local module for module in "${ROOT}"/*.sh ; do - if [ "${module}" != "${PATH}" ] ; then + if [ "${module}" != "${FILE}" ] ; then source "${module}" fi done