mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
remove spaces for clarity
This commit is contained in:
parent
3635527ea3
commit
d4412c45c8
1 changed files with 0 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ if [ ! -f "$SNAP/certbot-shared/__init__.py" ]; then
|
|||
echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cb_installed=$(grep -oP "__version__ = '\K.*(?=')" $SNAP/certbot-shared/__init__.py)
|
||||
|
||||
# get required certbot version for plugin
|
||||
|
|
@ -13,7 +12,6 @@ cb_required=$(grep -oP "certbot>=\K.*(?=')" $SNAP/setup.py)
|
|||
|
||||
python3 -c "from distutils.version import LooseVersion; exit(1) if LooseVersion('$cb_installed')\
|
||||
< LooseVersion('$cb_required') else exit(0)" || exit_code=$?
|
||||
|
||||
if [ "$exit_code" -eq 1 ]; then
|
||||
echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \
|
||||
"this plugin can be updated; will try again on next refresh."
|
||||
|
|
|
|||
Loading…
Reference in a new issue