From 8fe3b6edc533bf85949ae2118d184ccab979a8f8 Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 26 Jan 2021 20:00:44 +0800 Subject: [PATCH] fix shifting --- acme.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/acme.sh b/acme.sh index cdc09acd..eb311fd7 100755 --- a/acme.sh +++ b/acme.sh @@ -6574,19 +6574,21 @@ installOnline() { _nocron="$1" if [ "$_nocron" ]; then _nocron="--no-cron" + shift fi - shift + _noprofile="$1" if [ "$_noprofile" ]; then _noprofile="--no-profile" + shift fi - shift _branch="$3" if [ ! "$_branch" ]; then _branch="master" + else + shift fi - shift target="$PROJECT/archive/$_branch.tar.gz" _info "Downloading $target"