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