diff --git a/libretro-fetch.sh b/libretro-fetch.sh index 6985324d..3df94b73 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -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