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