Changed hardcoded /app into $BUILD_DIR

This commit is contained in:
Duane Hutchins
2018-10-08 11:23:11 -04:00
committed by Casey Faist
parent 8512fcb811
commit 05e29c74bc
14 changed files with 41 additions and 42 deletions
+4 -4
View File
@@ -2,13 +2,13 @@
# Detect Python-version with Pipenv.
if [[ -f $BUILD_DIR/Pipfile ]]; then
if [[ -f "$BUILD_DIR/Pipfile" ]]; then
if [[ ! -f $BUILD_DIR/runtime.txt ]]; then
if [[ ! -f $BUILD_DIR/Pipfile.lock ]]; then
if [[ ! -f "$BUILD_DIR/runtime.txt" ]]; then
if [[ ! -f "$BUILD_DIR/Pipfile.lock" ]]; then
puts-warn "No 'Pipfile.lock' found! We recommend you commit this into your repository."
fi
if [[ -f $BUILD_DIR/Pipfile.lock ]]; then
if [[ -f "$BUILD_DIR/Pipfile.lock" ]]; then
set +e
PYTHON=$(jq -r '._meta.requires.python_full_version' "$BUILD_DIR/Pipfile.lock")
if [[ "$PYTHON" != "null" ]]; then