summaryrefslogtreecommitdiff
path: root/functions.sh
blob: 547000a6c86d7d47a1cc9f6ffeeea77718813d85 (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 [ -d scripts/functions ]
then
	for FUNCTION in scripts/functions/*.sh
	do
		. "${FUNCTION}"
	done
fi