From 821d88e93ad5d6e5abb593c55c3ead30825118bb Mon Sep 17 00:00:00 2001 From: Martin Wepner Date: Mon, 20 Jul 2020 11:28:23 +0200 Subject: [PATCH] add break; remove empty print --- target/helper_functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/helper_functions.sh b/target/helper_functions.sh index dabd4aa6..9218b81b 100644 --- a/target/helper_functions.sh +++ b/target/helper_functions.sh @@ -49,7 +49,7 @@ for key, value in acme.items(): if 'domain' in cert and 'key' in cert: if 'main' in cert['domain'] and cert['domain']['main'] == '$WHAT' or 'sans' in cert['domain'] and '$WHAT' in cert['domain']['sans']: print cert['key'] -print '' + break ") CERT=$(cat /etc/letsencrypt/acme.json | python -c " import sys,json @@ -60,7 +60,7 @@ for key, value in acme.items(): if 'domain' in cert and 'certificate' in cert: if 'main' in cert['domain'] and cert['domain']['main'] == '$WHAT' or 'sans' in cert['domain'] and '$WHAT' in cert['domain']['sans']: print cert['certificate'] -print '' + break ") if [[ -n "${KEY}${CERT}" ]]; then