diff --git a/bin/steps/pipenv-python-version b/bin/steps/pipenv-python-version index ddc98259076ba0c2d8166f3705f0cc0da280cfb7..074d793191570b5a65629b44dceb3cd686307033 100755 --- a/bin/steps/pipenv-python-version +++ b/bin/steps/pipenv-python-version @@ -11,9 +11,12 @@ if [[ -f $BUILD_DIR/Pipfile ]]; 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 + echo "$PYTHON" > "$BUILD_DIR/runtime.txt" + fi set -e - if [[ ! "$PYTHON" ]]; then + if [[ "$PYTHON" != "null" ]]; then PYTHON=$(jq -r '._meta.requires.python_version' "$BUILD_DIR/Pipfile.lock") if [ "$PYTHON" = 2.7 ]; then echo "python-2.7.14" > "$BUILD_DIR/runtime.txt"