fix shifting

This commit is contained in:
neilpang 2021-01-26 20:00:44 +08:00 committed by neil
parent 7b3f735b34
commit 8fe3b6edc5

View File

@ -6574,19 +6574,21 @@ installOnline() {
_nocron="$1"
if [ "$_nocron" ]; then
_nocron="--no-cron"
fi
shift
fi
_noprofile="$1"
if [ "$_noprofile" ]; then
_noprofile="--no-profile"
fi
shift
fi
_branch="$3"
if [ ! "$_branch" ]; then
_branch="master"
fi
else
shift
fi
target="$PROJECT/archive/$_branch.tar.gz"
_info "Downloading $target"