From 04238e050b461de72f09a64733188f8e90b4e8a7 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Mon, 13 Jul 2020 19:11:29 -0700 Subject: [PATCH] why does echo need two >s --- certbot-dns-dnsimple/snap/hooks/post-refresh | 6 +++--- certbot-dns-dnsimple/snap/hooks/pre-refresh | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/certbot-dns-dnsimple/snap/hooks/post-refresh b/certbot-dns-dnsimple/snap/hooks/post-refresh index c4dae2307..6dbf99b56 100644 --- a/certbot-dns-dnsimple/snap/hooks/post-refresh +++ b/certbot-dns-dnsimple/snap/hooks/post-refresh @@ -4,15 +4,15 @@ cb_installed="$(snapctl get cb-installed)" if [ -z "$cb_installed" ]; then - echo "cb_installed not set, not doing version comparison check" > "$SNAP_DATA/debuglog" + echo "cb_installed not set, not doing version comparison check" >> "$SNAP_DATA/debuglog" exit 0 fi -echo "cb_installed: $cb_installed" > "$SNAP_DATA/debuglog" > "$SNAP_DATA/debuglog" +echo "cb_installed: $cb_installed" >> "$SNAP_DATA/debuglog" # get required certbot version for plugin cb_required=$(grep -oP "certbot>=\K.*(?=')" $SNAP/setup.py) -echo "cb_required: $cb_required" > "$SNAP_DATA/debuglog" +echo "cb_required: $cb_required" >> "$SNAP_DATA/debuglog" if [ "$cb_installed" -lt "$cb_required" ]; then echo "Certbot is version $cb_installed but needs to be at least $cb_required before \ diff --git a/certbot-dns-dnsimple/snap/hooks/pre-refresh b/certbot-dns-dnsimple/snap/hooks/pre-refresh index a253115a6..8998fecb5 100644 --- a/certbot-dns-dnsimple/snap/hooks/pre-refresh +++ b/certbot-dns-dnsimple/snap/hooks/pre-refresh @@ -3,12 +3,12 @@ first_install="$(snapctl get first-install)" if [ -z "$first_install" ]; then snapctl set first-install="false" - echo "first install, not doing any version comparison checks" > "$SNAP_DATA/debuglog" + echo "first install, not doing any version comparison checks" >> "$SNAP_DATA/debuglog" exit 0 fi -echo "ls $SNAP/certbot-shared:" > "$SNAP_DATA/debuglog" -ls $SNAP/certbot-shared > "$SNAP_DATA/debuglog" +echo "ls $SNAP/certbot-shared:" >> "$SNAP_DATA/debuglog" +ls $SNAP/certbot-shared >> "$SNAP_DATA/debuglog" cb_installed=$(grep -oP "__version__ = '\K.*(?=')" $SNAP/certbot-shared/__init__.py) -echo "cb_installed: $cb_installed" > "$SNAP_DATA/debuglog" +echo "cb_installed: $cb_installed" >> "$SNAP_DATA/debuglog" snapctl set cb-installed="$cb_installed"