Skip to content

Commit

Permalink
using a file stamp for PYTHON_BUILDPACK_NO_DEFAULT_ADDON as bin/relea…
Browse files Browse the repository at this point in the history
…se does not read from env vars
  • Loading branch information
BNMetrics committed Aug 19, 2020
1 parent d048427 commit eb187da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BUILD_DIR=$1

MANAGE_FILE=$(cd "$BUILD_DIR" && find . -maxdepth 3 -type f -name 'manage.py' | head -1)
MANAGE_FILE=${MANAGE_FILE:2}
PYTHON_BUILDPACK_NO_DEFAULT_ADDON=${PYTHON_BUILDPACK_NO_DEFAULT_ADDON:-}
PYTHON_BUILDPACK_NO_DEFAULT_ADDON="$BUILD_DIR/no_default_addons"

cat <<EOF
---
Expand All @@ -14,7 +14,7 @@ config_vars:
EOF


if [[ $MANAGE_FILE && -z $PYTHON_BUILDPACK_NO_DEFAULT_ADDON ]]; then
if [[ $MANAGE_FILE ]] && [[ ! -f $PYTHON_BUILDPACK_NO_DEFAULT_ADDON ]]; then
cat <<EOF
addons:
Expand Down

0 comments on commit eb187da

Please sign in to comment.