Merge pull request #179 from iKarith/master

Bugfix for running fetch in subdirs from a script
This commit is contained in:
Twinaphex 2015-02-15 23:38:36 +01:00
commit 2baf39c18f
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ WORKDIR=$(pwd)
if [ "$BASE_DIR" = "$SCRIPT" ]; then
BASE_DIR="$WORKDIR"
else
BASE_DIR="$WORKDIR/$BASE_DIR"
if [[ "$0" != /* ]]; then
# Make the path absolute
BASE_DIR="$WORKDIR/$BASE_DIR"
fi
fi
. $BASE_DIR/libretro-config.sh