Fix: install script parse args micro arch

This commit is contained in:
zijiren233 2024-06-23 23:59:04 +08:00
parent 10c21f31c4
commit 78337ae8c8
1 changed files with 5 additions and 4 deletions

View File

@ -10,8 +10,9 @@ function Help() {
echo "-h: help"
echo "-v: install version (default: latest)"
echo "-p: github proxy (default: https://mirror.ghproxy.com/)"
echo "-a: microarchitecture (no default value)"
echo " example: -a v2"
echo "-m: micro architecture (no default value)"
echo " example: -m v2"
echo " example: -m 6"
}
function Init() {
@ -28,7 +29,7 @@ function Init() {
}
function ParseArgs() {
while getopts "hv:p:" arg; do
while getopts "hv:p:m:" arg; do
case $arg in
h)
Help
@ -40,7 +41,7 @@ function ParseArgs() {
p)
GH_PROXY="$OPTARG"
;;
a)
m)
Microarchitecture="$OPTARG"
;;
?)