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,8 +8,11 @@ WORKDIR=$(pwd)
if [ "$BASE_DIR" = "$SCRIPT" ]; then
BASE_DIR="$WORKDIR"
else
if [[ "$0" != /* ]]; then
# Make the path absolute
BASE_DIR="$WORKDIR/$BASE_DIR"
fi
fi
. $BASE_DIR/libretro-config.sh
. $BASE_DIR/iKarith-super/fetch-rules.sh # will rename this dir later