Revert "Refactor: $BUILD_DIR"

This commit is contained in:
David Zülke
2019-10-09 15:28:31 +02:00
committed by GitHub
parent 1721fa3703
commit 00d44d2e34
15 changed files with 43 additions and 43 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