From d4412c45c88f8c296b5bbb187fde9992caa3de9f Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Tue, 14 Jul 2020 18:35:58 -0700 Subject: [PATCH] remove spaces for clarity --- certbot-dns-dnsimple/snap/hooks/post-refresh | 2 -- 1 file changed, 2 deletions(-) diff --git a/certbot-dns-dnsimple/snap/hooks/post-refresh b/certbot-dns-dnsimple/snap/hooks/post-refresh index 7203486ca..8f78ae222 100644 --- a/certbot-dns-dnsimple/snap/hooks/post-refresh +++ b/certbot-dns-dnsimple/snap/hooks/post-refresh @@ -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."