Pass arguments to installOnline function

This commit is contained in:
Honza Hommer 2019-05-19 15:54:41 +02:00
parent 527e1b8a16
commit 7289570f13
No known key found for this signature in database
GPG Key ID: 5EBDE8E7E1A00ACA

23
acme.sh
View File

@ -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