FILE
This commit is contained in:
parent
7bb0eeecf1
commit
3343762acc
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
PATH="$(realpath "${BASH_SOURCE[0]}")"
|
FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
ROOT="$(dirname "${PATH}")"
|
ROOT="$(dirname "${FILE}")"
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
local module
|
local module
|
||||||
for module in "${ROOT}"/*.sh ; do
|
for module in "${ROOT}"/*.sh ; do
|
||||||
if [ "${module}" != "${PATH}" ] ; then
|
if [ "${module}" != "${FILE}" ] ; then
|
||||||
source "${module}"
|
source "${module}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue