diff --git a/wp-uninstalled.sh b/wp-uninstalled.sh index 5f26931f..f2ec7505 100755 --- a/wp-uninstalled.sh +++ b/wp-uninstalled.sh @@ -8,7 +8,7 @@ if [ -z "@MESON@" ]; then BUILDDIR="@MESON_BUILD_ROOT@" else SOURCEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - BUILDDIR=${SOURCEDIR}/build + BUILDDIR=$(find "${SOURCEDIR}" -maxdepth 2 -name build.ninja -printf "%h\n" -quit 2>/dev/null || echo "${SOURCEDIR}/build") fi CONFIGDIR=config