Bugfix for running fetch in subdirs from a script

This commit is contained in:
T. Joseph Carter 2015-02-15 14:34:42 -08:00
parent 265b837c2f
commit 0b060f1a61

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