From 82ba2eaf1b772346d0f978a359bf5495bfda7ce3 Mon Sep 17 00:00:00 2001 From: David Caro Date: Tue, 12 Mar 2024 14:34:08 +0100 Subject: [PATCH] compile: fix toolforge build env detection Signed-off-by: David Caro --- compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.sh b/compile.sh index c982364..6ccd436 100755 --- a/compile.sh +++ b/compile.sh @@ -4,12 +4,12 @@ set -o errexit set -o pipefail shopt -s nullglob -if [[ "${CNB_PLATFORM_API:-}" == "" ]]; then +LAYERS_DIR="/layers/heroku_php" +if ! [[ -d "$LAYERS_DIR" ]]; then IN_TOOLFORGE_BUILD="no" LAYERS_DIR="/tmp/wikibots_build" else IN_TOOLFORGE_BUILD="yes" - LAYERS_DIR="/layers/heroku_php" fi LAYER_DIR="$LAYERS_DIR/wikibots" PUBLIC_HTML="$LAYER_DIR/public_html"