diff options
author | Colin Guthrie <colin@mageia.org> | 2014-07-29 21:11:13 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-07-29 21:11:13 +0100 |
commit | c4d7b611eec5b228afed19e53ba9573fc3ac85e1 (patch) | |
tree | 11fe62699286d918f5e6740ba444ac19629835f6 /mga-hdlists-cauldron | |
parent | 94413eb36fb609eab7873f97926c3ee5c634ea8e (diff) | |
download | mgatools-c4d7b611eec5b228afed19e53ba9573fc3ac85e1.tar mgatools-c4d7b611eec5b228afed19e53ba9573fc3ac85e1.tar.gz mgatools-c4d7b611eec5b228afed19e53ba9573fc3ac85e1.tar.bz2 mgatools-c4d7b611eec5b228afed19e53ba9573fc3ac85e1.tar.xz mgatools-c4d7b611eec5b228afed19e53ba9573fc3ac85e1.zip |
Support running the scripts from a direct git clone.
Diffstat (limited to 'mga-hdlists-cauldron')
-rwxr-xr-x | mga-hdlists-cauldron | 7 |
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 |