From 78552b183bfbb5fd4b40457f80bbba80f5fde426 Mon Sep 17 00:00:00 2001 From: BlueAnanas Date: Thu, 3 Mar 2016 14:51:07 +0100 Subject: [PATCH] Removed redundant backup in installcert when RealCACertPath == RealCertPath --- le.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/le.sh b/le.sh index b3ed7cab..cdefac4c 100755 --- a/le.sh +++ b/le.sh @@ -1349,13 +1349,13 @@ installcert() { fi if [ "$Le_RealCACertPath" ] ; then - if [ -f "$Le_RealCACertPath" ] ; then - cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak - fi if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then echo "" >> "$Le_RealCACertPath" cat "$CA_CERT_PATH" >> "$Le_RealCACertPath" else + if [ -f "$Le_RealCACertPath" ] ; then + cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak + fi cat "$CA_CERT_PATH" > "$Le_RealCACertPath" fi fi