mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-14 22:54:12 +00:00
Pass arguments to installOnline function
This commit is contained in:
parent
527e1b8a16
commit
7289570f13
23
acme.sh
23
acme.sh
@ -6098,8 +6098,23 @@ Parameters:
|
|||||||
# nocron noprofile
|
# nocron noprofile
|
||||||
_installOnline() {
|
_installOnline() {
|
||||||
_info "Installing from online archive."
|
_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
|
if [ ! "$BRANCH" ]; then
|
||||||
BRANCH="master"
|
BRANCH="master"
|
||||||
fi
|
fi
|
||||||
@ -6120,7 +6135,7 @@ _installOnline() {
|
|||||||
|
|
||||||
cd "$PROJECT_NAME-$BRANCH"
|
cd "$PROJECT_NAME-$BRANCH"
|
||||||
chmod +x $PROJECT_ENTRY
|
chmod +x $PROJECT_ENTRY
|
||||||
if ./$PROJECT_ENTRY install "$_nocron" "" "$_noprofile"; then
|
if ./$PROJECT_ENTRY --install "$@"; then
|
||||||
_info "Install success!"
|
_info "Install success!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -6863,7 +6878,7 @@ _process() {
|
|||||||
|
|
||||||
if [ "$INSTALLONLINE" ]; then
|
if [ "$INSTALLONLINE" ]; then
|
||||||
INSTALLONLINE=""
|
INSTALLONLINE=""
|
||||||
_installOnline
|
_installOnline "$@"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user