Browse Source

fix auto upgrade

neil 8 years ago
parent
commit
319e0ae3cf
1 changed files with 5 additions and 2 deletions
  1. 5 2
      acme.sh

+ 5 - 2
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 ;
+main "$@"