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" _nocron="$1"
if [ "$_nocron" ]; then if [ "$_nocron" ]; then
_nocron="--no-cron" _nocron="--no-cron"
fi
shift shift
fi
_noprofile="$1" _noprofile="$1"
if [ "$_noprofile" ]; then if [ "$_noprofile" ]; then
_noprofile="--no-profile" _noprofile="--no-profile"
fi
shift shift
fi
_branch="$3" _branch="$3"
if [ ! "$_branch" ]; then if [ ! "$_branch" ]; then
_branch="master" _branch="master"
fi else
shift shift
fi
target="$PROJECT/archive/$_branch.tar.gz" target="$PROJECT/archive/$_branch.tar.gz"
_info "Downloading $target" _info "Downloading $target"