From 7289570f1312e90ff583377763cc48a7b2b9a027 Mon Sep 17 00:00:00 2001 From: Honza Hommer Date: Sun, 19 May 2019 15:54:41 +0200 Subject: [PATCH] Pass arguments to installOnline function --- acme.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/acme.sh b/acme.sh index 60580f83..68b9dd3f 100755 --- a/acme.sh +++ b/acme.sh @@ -6098,8 +6098,23 @@ Parameters: # nocron noprofile _installOnline() { _info "Installing from online archive." - _nocron="$1" - _noprofile="$2" + + if ! _startswith "$1" "-"; then + if [ -n "$1" ]; then + set "$@" "--nocron" + fi + + shift + + if ! _startswith "$1" "-"; then + if [ -n "$1" ]; then + set "$@" "--noprofile" + fi + + shift + fi + fi + if [ ! "$BRANCH" ]; then BRANCH="master" fi @@ -6120,7 +6135,7 @@ _installOnline() { cd "$PROJECT_NAME-$BRANCH" chmod +x $PROJECT_ENTRY - if ./$PROJECT_ENTRY install "$_nocron" "" "$_noprofile"; then + if ./$PROJECT_ENTRY --install "$@"; then _info "Install success!" fi @@ -6863,7 +6878,7 @@ _process() { if [ "$INSTALLONLINE" ]; then INSTALLONLINE="" - _installOnline + _installOnline "$@" exit fi