From 4c0d3f1b75887f4fb3671907b185b4781378d2eb Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 8 Jul 2016 11:50:47 +0800 Subject: [PATCH] minor. remove the ugly return code for installcert. --- acme.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/acme.sh b/acme.sh index 5b75d153..ee4ee77c 100755 --- a/acme.sh +++ b/acme.sh @@ -1825,16 +1825,10 @@ issue() { _savedomainconf "Le_NextRenewTimeStr" "$Le_NextRenewTimeStr" - _output="$(installcert $Le_Domain "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" 2>&1)" - _ret="$?" - if [ "$_ret" = "9" ] ; then - #ignore the empty install error. - return 0 - fi - if [ "$_ret" != "0" ] ; then - _err "$_output" - return 1 + if [ "$Le_RealCertPath$Le_RealKeyPath$Le_RealCACertPath$Le_ReloadCmd$Le_RealFullChainPath" ] ; then + installcert $Le_Domain "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" fi + } renew() { @@ -2010,7 +2004,7 @@ installcert() { if [ "$_installed" = "0" ] ; then _err "Nothing to install. You don't specify any parameter." - return 9 + return 1 fi }