summaryrefslogtreecommitdiff
path: root/functions.sh
blob: 626ba3f709f121c3a4405e0b5ae5bd873b3c2772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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