remove spaces for clarity

This commit is contained in:
Erica Portnoy 2020-07-14 18:35:58 -07:00
parent 3635527ea3
commit d4412c45c8

View file

@ -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."