mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:14:21 +02:00
reuse venv sometimes on Python 2.6
This commit is contained in:
@@ -445,7 +445,8 @@ if [ "$1" = "--le-auto-phase2" ]; then
|
|||||||
|
|
||||||
shift 1 # the --le-auto-phase2 arg
|
shift 1 # the --le-auto-phase2 arg
|
||||||
if [ -f "$VENV_BIN/letsencrypt" ]; then
|
if [ -f "$VENV_BIN/letsencrypt" ]; then
|
||||||
INSTALLED_VERSION=$("$VENV_BIN/letsencrypt" --version 2>&1 | cut -d " " -f 2)
|
# --version output ran through grep due to python-cryptography DeprecationWarnings
|
||||||
|
INSTALLED_VERSION=$("$VENV_BIN/letsencrypt" --version 2>&1 | grep ^letsencrypt | cut -d " " -f 2)
|
||||||
else
|
else
|
||||||
INSTALLED_VERSION="none"
|
INSTALLED_VERSION="none"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -176,7 +176,8 @@ if [ "$1" = "--le-auto-phase2" ]; then
|
|||||||
|
|
||||||
shift 1 # the --le-auto-phase2 arg
|
shift 1 # the --le-auto-phase2 arg
|
||||||
if [ -f "$VENV_BIN/letsencrypt" ]; then
|
if [ -f "$VENV_BIN/letsencrypt" ]; then
|
||||||
INSTALLED_VERSION=$("$VENV_BIN/letsencrypt" --version 2>&1 | cut -d " " -f 2)
|
# --version output ran through grep due to python-cryptography DeprecationWarnings
|
||||||
|
INSTALLED_VERSION=$("$VENV_BIN/letsencrypt" --version 2>&1 | grep ^letsencrypt | cut -d " " -f 2)
|
||||||
else
|
else
|
||||||
INSTALLED_VERSION="none"
|
INSTALLED_VERSION="none"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user