From 319e0ae3cf5d6fe6577a01ac71d30f057367457d Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 21 Sep 2016 13:39:39 +0800 Subject: [PATCH] fix auto upgrade --- acme.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index df4c7e4..b9f69bc 100755 --- a/acme.sh +++ b/acme.sh @@ -3613,8 +3613,11 @@ fi -[ -z "$1" ] && showhelp +main() { + [ -z "$1" ] && showhelp && return + if _startswith "$1" '-' ; then _process "$@"; else "$@";fi +} -if _startswith "$1" '-' ; then _process "$@" ; else "$@"; fi ; \ No newline at end of file +main "$@" \ No newline at end of file