diff options
Diffstat (limited to 'functions.sh')
-rwxr-xr-x | functions.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh new file mode 100755 index 000000000..626ba3f70 --- /dev/null +++ b/functions.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +LH_BASE="${LH_BASE:-/usr/share/live-helper}" + +# Source global functions +for FUNCTION in "${LH_BASE}"/functions/*.sh +do + . "${FUNCTION}" +done + +# Source local functions +if ls scripts/functions/*.sh > /dev/null 2>&1 +then + for FUNCTION in scripts/functions/*.sh + do + . "${FUNCTION}" + done +fi |