summaryrefslogtreecommitdiffstats
path: root/mga-hdlists-cauldron
diff options
context:
space:
mode:
Diffstat (limited to 'mga-hdlists-cauldron')
-rwxr-xr-xmga-hdlists-cauldron7
1 files changed, 6 insertions, 1 deletions
diff --git a/mga-hdlists-cauldron b/mga-hdlists-cauldron
index dc4404c..ca85344 100755
--- a/mga-hdlists-cauldron
+++ b/mga-hdlists-cauldron
@@ -2,7 +2,12 @@
set -e
-. /usr/share/mgatools/functions
+LOCALDIR="$(dirname $0)"
+if [ -d "$LOCALDIR/.git" -a -f "$LOCALDIR/functions" ]; then
+ . "$LOCALDIR/functions"
+else
+ . /usr/share/mgatools/functions
+fi
if [ "$1" = "--dry-run" ]; then
dryrun=echo