~chessy/live-build/live-helper.chessy

« back to all changes in this revision

Viewing changes to functions.sh

  • Committer: Cody A.W. Somerville
  • Date: 2009-12-17 15:47:33 UTC
  • mfrom: (990.1.113)
  • Revision ID: cody.somerville@canonical.com-20091217154733-s399e2926ouoj5j6
Merge in live-helper 1.0.6-1 from Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
LH_BASE="${LH_BASE:-/usr/share/live-helper}"
4
4
 
 
5
# Source global functions
5
6
for FUNCTION in "${LH_BASE}"/functions/*.sh
6
7
do
7
8
        . "${FUNCTION}"
8
9
done
 
10
 
 
11
# Source local functions
 
12
if ls scripts/functions/*.sh > /dev/null 2>&1
 
13
then
 
14
        for FUNCTION in scripts/functions/*.sh
 
15
        do
 
16
                . "${FUNCTION}"
 
17
        done
 
18
fi