Skip to content

Commit

Permalink
Merge pull request #6 from david-caro/main
Browse files Browse the repository at this point in the history
compile: fix toolforge build env detection
  • Loading branch information
Saisengen committed Mar 12, 2024
2 parents 70efb88 + 82ba2ea commit d09edda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compile.sh
Expand Up @@ -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"
Expand Down

0 comments on commit d09edda

Please sign in to comment.